]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0395.stderr
Merge commit '4a053f206fd6799a25823c307f7d7f9d897be118' into sync-rustfmt-subtree
[rust.git] / src / test / ui / error-codes / E0395.stderr
1 error: pointers cannot be reliably compared during const eval
2   --> $DIR/E0395.rs:4:29
3    |
4 LL | static BAZ: bool = unsafe { (&FOO as *const i32) == (&BAR as *const i32) };
5    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: see issue #53020 <https://github.com/rust-lang/rust/issues/53020> for more information
8
9 error: aborting due to previous error
10