Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/105047.rs: fixed with errors #1571

Merged
merged 1 commit into from
Apr 20, 2023
Merged

ices/105047.rs: fixed with errors #1571

merged 1 commit into from
Apr 20, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#105047

#![feature(raw_ref_op)]

const RCZ: *const i32 = &raw const *&0;

const fn f() {
    if let RCZ = &raw const *&0 {}
}

fn main() {}
=== stdout ===
=== stderr ===
error: pointers cannot be reliably compared during const eval
 --> /home/runner/work/glacier/glacier/ices/105047.rs:6:12
  |
6 |     if let RCZ = &raw const *&0 {}
  |            ^^^
  |
  = note: see issue #53020 <https://github.com/rust-lang/rust/issues/53020> for more information

note: erroneous constant used
 --> /home/runner/work/glacier/glacier/ices/105047.rs:6:30
  |
6 |     if let RCZ = &raw const *&0 {}
  |                              ^^

error: aborting due to previous error

==============

=== stdout ===
=== stderr ===
error: pointers cannot be reliably compared during const eval
 --> /home/runner/work/glacier/glacier/ices/105047.rs:6:12
  |
6 |     if let RCZ = &raw const *&0 {}
  |            ^^^
  |
  = note: see issue #53020 <rust-lang/rust#53020> for more information

note: erroneous constant used
 --> /home/runner/work/glacier/glacier/ices/105047.rs:6:30
  |
6 |     if let RCZ = &raw const *&0 {}
  |                              ^^

error: aborting due to previous error

==============
@JohnTitor JohnTitor merged commit a6ebe47 into master Apr 20, 2023
@JohnTitor JohnTitor deleted the autofix/ices/105047.rs branch April 20, 2023 08:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants