]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parenthesized-deref-suggestion.stderr
Auto merge of #62748 - luca-barbieri:optimize-refcell-borrow, r=RalfJung
[rust.git] / src / test / ui / parenthesized-deref-suggestion.stderr
1 error[E0609]: no field `opts` on type `*const Session`
2   --> $DIR/parenthesized-deref-suggestion.rs:7:30
3    |
4 LL |     (sess as *const Session).opts;
5    |                              ^^^^
6 help: `(sess as *const Session)` is a raw pointer; try dereferencing it
7    |
8 LL |     (*(sess as *const Session)).opts;
9    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10
11 error[E0609]: no field `0` on type `[u32; 1]`
12   --> $DIR/parenthesized-deref-suggestion.rs:10:21
13    |
14 LL |     (x as [u32; 1]).0;
15    |     ----------------^
16    |     |
17    |     help: instead of using tuple indexing, use array indexing: `(x as [u32; 1])[0]`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0609`.