]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/unnecessary_ref.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / unnecessary_ref.stderr
CommitLineData
f20569fa
XL
1error: creating a reference that is immediately dereferenced
2 --> $DIR/unnecessary_ref.rs:13:17
3 |
4LL | let inner = (&outer).inner;
5 | ^^^^^^^^ help: try this: `outer`
6 |
7note: the lint level is defined here
8 --> $DIR/unnecessary_ref.rs:10:8
9 |
10LL | #[deny(clippy::ref_in_deref)]
11 | ^^^^^^^^^^^^^^^^^^^^
12
13error: creating a reference that is immediately dereferenced
14 --> $DIR/unnecessary_ref.rs:22:16
15 |
16LL | unsafe { &*(&*package).0 }.hello();
17 | ^^^^^^^^^^^ help: try this: `(*package)`
18 |
19 = note: `-D clippy::ref-in-deref` implied by `-D warnings`
20
21error: aborting due to 2 previous errors
22