]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/unnecessary_ref.stderr
iterate List by value
[rust.git] / tests / ui / unnecessary_ref.stderr
index a3d8f5e337c6a6f052528abbc2152ff4664cdef0..34ba167a947906602a4267f2a3125906f653432a 100644 (file)
@@ -1,13 +1,13 @@
 error: Creating a reference that is immediately dereferenced.
-  --> $DIR/unnecessary_ref.rs:23:17
+  --> $DIR/unnecessary_ref.rs:13:17
    |
-23 |     let inner = (&outer).inner;
-   |                 ^^^^^^^^ help: try this: `outer.inner`
+LL |     let inner = (&outer).inner;
+   |                 ^^^^^^^^ help: try this: `outer`
    |
-note: lint level defined here
-  --> $DIR/unnecessary_ref.rs:20:8
+note: the lint level is defined here
+  --> $DIR/unnecessary_ref.rs:10:8
    |
-20 | #[deny(clippy::ref_in_deref)]
+LL | #[deny(clippy::ref_in_deref)]
    |        ^^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to previous error