mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
106 lines
2.1 KiB
Text
106 lines
2.1 KiB
Text
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:19:13
|
|
|
|
|
19 | let b = *&a;
|
|
| ^^^
|
|
|
|
|
note: lint level defined here
|
|
--> $DIR/reference.rs:14:8
|
|
|
|
|
14 | #[deny(deref_addrof)]
|
|
| ^^^^^^^^^^^^
|
|
help: try this
|
|
| let b = a;
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:24:13
|
|
|
|
|
24 | let b = *&get_number();
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
help: try this
|
|
| let b = get_number();
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:32:13
|
|
|
|
|
32 | let b = *&bytes[1..2][0];
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
help: try this
|
|
| let b = bytes[1..2][0];
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:39:13
|
|
|
|
|
39 | let b = *&(a);
|
|
| ^^^^^
|
|
|
|
|
help: try this
|
|
| let b = (a);
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:44:13
|
|
|
|
|
44 | let b = *(&a);
|
|
| ^^^^^
|
|
|
|
|
help: try this
|
|
| let b = a;
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:49:13
|
|
|
|
|
49 | let b = *((&a));
|
|
| ^^^^^^^
|
|
|
|
|
help: try this
|
|
| let b = a;
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:54:13
|
|
|
|
|
54 | let b = *&&a;
|
|
| ^^^^
|
|
|
|
|
help: try this
|
|
| let b = &a;
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:59:14
|
|
|
|
|
59 | let b = **&aref;
|
|
| ^^^^^^
|
|
|
|
|
help: try this
|
|
| let b = *aref;
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:66:14
|
|
|
|
|
66 | let b = **&&a;
|
|
| ^^^^
|
|
|
|
|
help: try this
|
|
| let b = *&a;
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:73:17
|
|
|
|
|
73 | let y = *&mut x;
|
|
| ^^^^^^^
|
|
|
|
|
help: try this
|
|
| let y = x;
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:83:18
|
|
|
|
|
83 | let y = **&mut &mut x;
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
help: try this
|
|
| let y = *&mut x;
|
|
|
|
error: aborting due to 11 previous errors
|
|
|