2017-02-07 20:05:30 +00:00
|
|
|
error: immediately dereferencing a reference
|
|
|
|
--> $DIR/reference.rs:19:13
|
|
|
|
|
|
|
|
|
19 | let b = *&a;
|
2017-05-03 10:51:47 +00:00
|
|
|
| ^^^ help: try this `a`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/reference.rs:14:8
|
|
|
|
|
|
|
|
|
14 | #[deny(deref_addrof)]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
|
|
|
--> $DIR/reference.rs:24:13
|
|
|
|
|
|
|
|
|
24 | let b = *&get_number();
|
2017-05-03 10:51:47 +00:00
|
|
|
| ^^^^^^^^^^^^^^ help: try this `get_number()`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
|
|
|
--> $DIR/reference.rs:32:13
|
|
|
|
|
|
|
|
|
32 | let b = *&bytes[1..2][0];
|
2017-05-03 10:51:47 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try this `bytes[1..2][0]`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
|
|
|
--> $DIR/reference.rs:39:13
|
|
|
|
|
|
|
|
|
39 | let b = *&(a);
|
2017-05-03 10:51:47 +00:00
|
|
|
| ^^^^^ help: try this `(a)`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
|
|
|
--> $DIR/reference.rs:44:13
|
|
|
|
|
|
|
|
|
44 | let b = *(&a);
|
2017-05-03 10:51:47 +00:00
|
|
|
| ^^^^^ help: try this `a`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
|
|
|
--> $DIR/reference.rs:49:13
|
|
|
|
|
|
|
|
|
49 | let b = *((&a));
|
2017-05-03 10:51:47 +00:00
|
|
|
| ^^^^^^^ help: try this `a`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
|
|
|
--> $DIR/reference.rs:54:13
|
|
|
|
|
|
|
|
|
54 | let b = *&&a;
|
2017-05-03 10:51:47 +00:00
|
|
|
| ^^^^ help: try this `&a`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
|
|
|
--> $DIR/reference.rs:59:14
|
|
|
|
|
|
|
|
|
59 | let b = **&aref;
|
2017-05-03 10:51:47 +00:00
|
|
|
| ^^^^^^ help: try this `aref`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
|
|
|
--> $DIR/reference.rs:66:14
|
|
|
|
|
|
|
|
|
66 | let b = **&&a;
|
2017-05-03 10:51:47 +00:00
|
|
|
| ^^^^ help: try this `&a`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
|
|
|
--> $DIR/reference.rs:73:17
|
|
|
|
|
|
|
|
|
73 | let y = *&mut x;
|
2017-05-03 10:51:47 +00:00
|
|
|
| ^^^^^^^ help: try this `x`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
|
|
|
--> $DIR/reference.rs:83:18
|
|
|
|
|
|
|
|
|
83 | let y = **&mut &mut x;
|
2017-05-03 10:51:47 +00:00
|
|
|
| ^^^^^^^^^^^^ help: try this `&mut x`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: aborting due to 11 previous errors
|
|
|
|
|