]> git.lizzy.rs Git - rust.git/blob - tests/ui/reference.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / reference.stderr
1 error: immediately dereferencing a reference
2   --> $DIR/reference.rs:25:13
3    |
4 LL |     let b = *&a;
5    |             ^^^ help: try this: `a`
6    |
7    = note: `-D clippy::deref-addrof` implied by `-D warnings`
8
9 error: immediately dereferencing a reference
10   --> $DIR/reference.rs:27:13
11    |
12 LL |     let b = *&get_number();
13    |             ^^^^^^^^^^^^^^ help: try this: `get_number()`
14
15 error: immediately dereferencing a reference
16   --> $DIR/reference.rs:32:13
17    |
18 LL |     let b = *&bytes[1..2][0];
19    |             ^^^^^^^^^^^^^^^^ help: try this: `bytes[1..2][0]`
20
21 error: immediately dereferencing a reference
22   --> $DIR/reference.rs:36:13
23    |
24 LL |     let b = *&(a);
25    |             ^^^^^ help: try this: `(a)`
26
27 error: immediately dereferencing a reference
28   --> $DIR/reference.rs:38:13
29    |
30 LL |     let b = *(&a);
31    |             ^^^^^ help: try this: `a`
32
33 error: immediately dereferencing a reference
34   --> $DIR/reference.rs:41:13
35    |
36 LL |     let b = *((&a));
37    |             ^^^^^^^ help: try this: `a`
38
39 error: immediately dereferencing a reference
40   --> $DIR/reference.rs:43:13
41    |
42 LL |     let b = *&&a;
43    |             ^^^^ help: try this: `&a`
44
45 error: immediately dereferencing a reference
46   --> $DIR/reference.rs:45:14
47    |
48 LL |     let b = **&aref;
49    |              ^^^^^^ help: try this: `aref`
50
51 error: immediately dereferencing a reference
52   --> $DIR/reference.rs:49:14
53    |
54 LL |     let b = **&&a;
55    |              ^^^^ help: try this: `&a`
56
57 error: immediately dereferencing a reference
58   --> $DIR/reference.rs:53:17
59    |
60 LL |         let y = *&mut x;
61    |                 ^^^^^^^ help: try this: `x`
62
63 error: immediately dereferencing a reference
64   --> $DIR/reference.rs:60:18
65    |
66 LL |         let y = **&mut &mut x;
67    |                  ^^^^^^^^^^^^ help: try this: `&mut x`
68
69 error: aborting due to 11 previous errors
70