2022-05-28 20:57:15 -05:00
|
|
|
error: deref on an immutable reference
|
2022-05-29 20:49:46 -05:00
|
|
|
--> $DIR/borrow_deref_ref.rs:10:17
|
2022-05-28 20:57:15 -05:00
|
|
|
|
|
|
|
|
LL | let b = &*a;
|
|
|
|
| ^^^ help: if you would like to reborrow, try removing `&*`: `a`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::borrow-deref-ref` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: deref on an immutable reference
|
2022-06-01 10:32:26 -05:00
|
|
|
--> $DIR/borrow_deref_ref.rs:12:22
|
2022-05-28 20:57:15 -05:00
|
|
|
|
|
|
|
|
LL | let b = &mut &*bar(&12);
|
|
|
|
| ^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `bar(&12)`
|
|
|
|
|
|
|
|
error: deref on an immutable reference
|
2022-06-01 10:32:26 -05:00
|
|
|
--> $DIR/borrow_deref_ref.rs:55:23
|
2022-05-28 20:57:15 -05:00
|
|
|
|
|
|
|
|
LL | let addr_y = &&*x as *const _ as usize; // assert ok
|
|
|
|
| ^^^ help: if you would like to reborrow, try removing `&*`: `x`
|
|
|
|
|
2022-06-01 10:32:26 -05:00
|
|
|
error: aborting due to 3 previous errors
|
2022-05-28 20:57:15 -05:00
|
|
|
|