]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/ptr_eq.stderr
Rollup merge of #78769 - est31:remove_lifetimes, r=KodrAus
[rust.git] / src / tools / clippy / tests / ui / ptr_eq.stderr
1 error: use `std::ptr::eq` when comparing raw pointers
2   --> $DIR/ptr_eq.rs:20:13
3    |
4 LL |     let _ = a as *const _ as usize == b as *const _ as usize;
5    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::ptr::eq(a, b)`
6    |
7    = note: `-D clippy::ptr-eq` implied by `-D warnings`
8
9 error: use `std::ptr::eq` when comparing raw pointers
10   --> $DIR/ptr_eq.rs:21:13
11    |
12 LL |     let _ = a as *const _ == b as *const _;
13    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::ptr::eq(a, b)`
14
15 error: aborting due to 2 previous errors
16