2017-02-07 14:05:30 -06:00
|
|
|
error: immediately dereferencing a reference
|
2017-05-17 10:51:35 -05:00
|
|
|
--> reference.rs:19:13
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
19 | let b = *&a;
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^ help: try this `a`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-17 07:19:44 -05:00
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
2017-05-17 10:51:35 -05:00
|
|
|
--> reference.rs:21:13
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 09:38:19 -05:00
|
|
|
21 | let b = *&get_number();
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^^^^^^^^^^^ help: try this `get_number()`
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
2017-05-17 10:51:35 -05:00
|
|
|
--> reference.rs:26:13
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 09:38:19 -05:00
|
|
|
26 | let b = *&bytes[1..2][0];
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try this `bytes[1..2][0]`
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
2017-05-17 10:51:35 -05:00
|
|
|
--> reference.rs:30:13
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 09:38:19 -05:00
|
|
|
30 | let b = *&(a);
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^^ help: try this `(a)`
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
2017-05-17 10:51:35 -05:00
|
|
|
--> reference.rs:32:13
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 09:38:19 -05:00
|
|
|
32 | let b = *(&a);
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^^ help: try this `a`
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
2017-05-17 10:51:35 -05:00
|
|
|
--> reference.rs:34:13
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 09:38:19 -05:00
|
|
|
34 | let b = *((&a));
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^^^^ help: try this `a`
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
2017-05-17 10:51:35 -05:00
|
|
|
--> reference.rs:36:13
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 09:38:19 -05:00
|
|
|
36 | let b = *&&a;
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^ help: try this `&a`
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
2017-05-17 10:51:35 -05:00
|
|
|
--> reference.rs:38:14
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 09:38:19 -05:00
|
|
|
38 | let b = **&aref;
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^^^ help: try this `aref`
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
2017-05-17 10:51:35 -05:00
|
|
|
--> reference.rs:42:14
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 09:38:19 -05:00
|
|
|
42 | let b = **&&a;
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^ help: try this `&a`
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
2017-05-17 10:51:35 -05:00
|
|
|
--> reference.rs:46:17
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 09:38:19 -05:00
|
|
|
46 | let y = *&mut x;
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^^^^ help: try this `x`
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: immediately dereferencing a reference
|
2017-05-17 10:51:35 -05:00
|
|
|
--> reference.rs:53:18
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 09:38:19 -05:00
|
|
|
53 | let y = **&mut &mut x;
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^^^^^^^^^ help: try this `&mut x`
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
|
|
|
= note: `-D deref-addrof` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2017-05-26 02:21:54 -05:00
|
|
|
error: aborting due to previous error(s)
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
|
|
To learn more, run the command again with --verbose.
|