]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/borrow_deref_ref_unfixable.stderr
Auto merge of #97841 - nvzqz:inline-encode-wide, r=thomcc
[rust.git] / src / tools / clippy / tests / ui / borrow_deref_ref_unfixable.stderr
1 error: deref on an immutable reference
2   --> $DIR/borrow_deref_ref_unfixable.rs:8:23
3    |
4 LL |         let x: &str = &*s;
5    |                       ^^^
6    |
7    = note: `-D clippy::borrow-deref-ref` implied by `-D warnings`
8 help: if you would like to reborrow, try removing `&*`
9    |
10 LL |         let x: &str = s;
11    |                       ~
12 help: if you would like to deref, try using `&**`
13    |
14 LL |         let x: &str = &**s;
15    |                       ~~~~
16
17 error: aborting due to previous error
18