]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-25826.stderr
Do not suggest `let_else` if no bindings would be introduced
[rust.git] / src / test / ui / consts / issue-25826.stderr
1 error: pointers cannot be reliably compared during const eval
2   --> $DIR/issue-25826.rs:3:30
3    |
4 LL |     const A: bool = unsafe { id::<u8> as *const () < id::<u16> as *const () };
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