mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 13:43:17 +00:00
36ba4885ab
Cleaning the empty lines for clarity.
74 lines
1.9 KiB
Text
74 lines
1.9 KiB
Text
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:19:13
|
|
|
|
|
19 | let b = *&a;
|
|
| ^^^ help: try this `a`
|
|
|
|
|
note: lint level defined here
|
|
--> $DIR/reference.rs:14:8
|
|
|
|
|
14 | #[deny(deref_addrof)]
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:21:13
|
|
|
|
|
21 | let b = *&get_number();
|
|
| ^^^^^^^^^^^^^^ help: try this `get_number()`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:26:13
|
|
|
|
|
26 | let b = *&bytes[1..2][0];
|
|
| ^^^^^^^^^^^^^^^^ help: try this `bytes[1..2][0]`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:30:13
|
|
|
|
|
30 | let b = *&(a);
|
|
| ^^^^^ help: try this `(a)`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:32:13
|
|
|
|
|
32 | let b = *(&a);
|
|
| ^^^^^ help: try this `a`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:34:13
|
|
|
|
|
34 | let b = *((&a));
|
|
| ^^^^^^^ help: try this `a`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:36:13
|
|
|
|
|
36 | let b = *&&a;
|
|
| ^^^^ help: try this `&a`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:38:14
|
|
|
|
|
38 | let b = **&aref;
|
|
| ^^^^^^ help: try this `aref`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:42:14
|
|
|
|
|
42 | let b = **&&a;
|
|
| ^^^^ help: try this `&a`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:46:17
|
|
|
|
|
46 | let y = *&mut x;
|
|
| ^^^^^^^ help: try this `x`
|
|
|
|
error: immediately dereferencing a reference
|
|
--> $DIR/reference.rs:53:18
|
|
|
|
|
53 | let y = **&mut &mut x;
|
|
| ^^^^^^^^^^^^ help: try this `&mut x`
|
|
|
|
error: aborting due to 11 previous errors
|
|
|