]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0395.stderr
Suggest `if let`/`let_else` for refutable pat in `let`
[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