2022-06-04 11:34:07 +00:00
|
|
|
error: deref on an immutable reference
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/borrow_deref_ref.rs:13:17
|
2022-06-04 11:34:07 +00: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`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::borrow_deref_ref)]`
|
2022-06-04 11:34:07 +00:00
|
|
|
|
|
|
|
error: deref on an immutable reference
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/borrow_deref_ref.rs:15:22
|
2022-06-04 11:34:07 +00:00
|
|
|
|
|
|
|
|
LL | let b = &mut &*bar(&12);
|
|
|
|
| ^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `bar(&12)`
|
|
|
|
|
|
|
|
error: deref on an immutable reference
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/borrow_deref_ref.rs:69:23
|
2022-06-04 11:34:07 +00:00
|
|
|
|
|
|
|
|
LL | let addr_y = &&*x as *const _ as usize; // assert ok
|
|
|
|
| ^^^ help: if you would like to reborrow, try removing `&*`: `x`
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|