fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
695 B18 linesraw
1error[E0080]: evaluation of constant value failed
2  --> $DIR/ref_to_int_match.rs:24:27
3   |
4LL | const BAR: Int = unsafe { Foo { r: &42 }.f };
5   |                           ^^^^^^^^^^^^^^^^ unable to turn pointer into integer
6   |
7   = help: this code performed an operation that depends on the underlying bytes representing a pointer
8   = help: the absolute address of a pointer is not known at compile-time, so such operations are not supported
9
10error: could not evaluate constant pattern
11  --> $DIR/ref_to_int_match.rs:7:14
12   |
13LL |         10..=BAR => {},
14   |              ^^^
15
16error: aborting due to 2 previous errors
17
18For more information about this error, try `rustc --explain E0080`.