]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/deref_addrof.stderr
Rollup merge of #92024 - pcwalton:per-codegen-unit-names, r=davidtwco
[rust.git] / src / tools / clippy / tests / ui / deref_addrof.stderr
1 error: immediately dereferencing a reference
2   --> $DIR/deref_addrof.rs:19: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/deref_addrof.rs:21:13
11    |
12 LL |     let b = *&get_number();
13    |             ^^^^^^^^^^^^^^ help: try this: `get_number()`
14
15 error: immediately dereferencing a reference
16   --> $DIR/deref_addrof.rs:26: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/deref_addrof.rs:30:13
23    |
24 LL |     let b = *&(a);
25    |             ^^^^^ help: try this: `(a)`
26
27 error: immediately dereferencing a reference
28   --> $DIR/deref_addrof.rs:32:13
29    |
30 LL |     let b = *(&a);
31    |             ^^^^^ help: try this: `a`
32
33 error: immediately dereferencing a reference
34   --> $DIR/deref_addrof.rs:35:13
35    |
36 LL |     let b = *((&a));
37    |             ^^^^^^^ help: try this: `a`
38
39 error: immediately dereferencing a reference
40   --> $DIR/deref_addrof.rs:37:13
41    |
42 LL |     let b = *&&a;
43    |             ^^^^ help: try this: `&a`
44
45 error: immediately dereferencing a reference
46   --> $DIR/deref_addrof.rs:39:14
47    |
48 LL |     let b = **&aref;
49    |              ^^^^^^ help: try this: `aref`
50
51 error: immediately dereferencing a reference
52   --> $DIR/deref_addrof.rs:45:9
53    |
54 LL |         *& $visitor
55    |         ^^^^^^^^^^^ help: try this: `$visitor`
56 ...
57 LL |         m!(self)
58    |         -------- in this macro invocation
59    |
60    = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
61
62 error: immediately dereferencing a reference
63   --> $DIR/deref_addrof.rs:52:9
64    |
65 LL |         *& mut $visitor
66    |         ^^^^^^^^^^^^^^^ help: try this: `$visitor`
67 ...
68 LL |         m_mut!(self)
69    |         ------------ in this macro invocation
70    |
71    = note: this error originates in the macro `m_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
72
73 error: aborting due to 10 previous errors
74