rust-clippy/tests/ui/reference.stderr

71 lines
1.8 KiB
Text
Raw Normal View History

error: immediately dereferencing a reference
2017-08-01 15:54:21 +00:00
--> $DIR/reference.rs:19:13
|
19 | let b = *&a;
2017-07-21 08:40:23 +00:00
| ^^^ help: try this: `a`
|
= note: `-D deref-addrof` implied by `-D warnings`
error: immediately dereferencing a reference
2017-08-01 15:54:21 +00:00
--> $DIR/reference.rs:21:13
|
21 | let b = *&get_number();
2017-07-21 08:40:23 +00:00
| ^^^^^^^^^^^^^^ help: try this: `get_number()`
error: immediately dereferencing a reference
2017-08-01 15:54:21 +00:00
--> $DIR/reference.rs:26:13
|
26 | let b = *&bytes[1..2][0];
2017-07-21 08:40:23 +00:00
| ^^^^^^^^^^^^^^^^ help: try this: `bytes[1..2][0]`
error: immediately dereferencing a reference
2017-08-01 15:54:21 +00:00
--> $DIR/reference.rs:30:13
|
30 | let b = *&(a);
2017-07-21 08:40:23 +00:00
| ^^^^^ help: try this: `(a)`
error: immediately dereferencing a reference
2017-08-01 15:54:21 +00:00
--> $DIR/reference.rs:32:13
|
32 | let b = *(&a);
2017-07-21 08:40:23 +00:00
| ^^^^^ help: try this: `a`
error: immediately dereferencing a reference
2017-08-01 15:54:21 +00:00
--> $DIR/reference.rs:34:13
|
34 | let b = *((&a));
2017-07-21 08:40:23 +00:00
| ^^^^^^^ help: try this: `a`
error: immediately dereferencing a reference
2017-08-01 15:54:21 +00:00
--> $DIR/reference.rs:36:13
|
36 | let b = *&&a;
2017-07-21 08:40:23 +00:00
| ^^^^ help: try this: `&a`
error: immediately dereferencing a reference
2017-08-01 15:54:21 +00:00
--> $DIR/reference.rs:38:14
|
38 | let b = **&aref;
2017-07-21 08:40:23 +00:00
| ^^^^^^ help: try this: `aref`
error: immediately dereferencing a reference
2017-08-01 15:54:21 +00:00
--> $DIR/reference.rs:42:14
|
42 | let b = **&&a;
2017-07-21 08:40:23 +00:00
| ^^^^ help: try this: `&a`
error: immediately dereferencing a reference
2017-08-01 15:54:21 +00:00
--> $DIR/reference.rs:46:17
|
46 | let y = *&mut x;
2017-07-21 08:40:23 +00:00
| ^^^^^^^ help: try this: `x`
error: immediately dereferencing a reference
2017-08-01 15:54:21 +00:00
--> $DIR/reference.rs:53:18
|
53 | let y = **&mut &mut x;
2017-07-21 08:40:23 +00:00
| ^^^^^^^^^^^^ help: try this: `&mut x`
2017-07-03 04:37:30 +00:00
error: aborting due to 11 previous errors