5 Dereferencing and then borrowing a reference value has no effect in most cases.
8 False negative on such code:
11 let addr_x = &x as *const _ as usize;
12 let addr_y = &&*x as *const _ as usize; // assert ok now, and lint triggered.
13 // But if we fix it, assert will fail.
14 assert_ne!(addr_x, addr_y);
19 let s = &String::new();
21 let a: &String = &* s;