]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parenthesized-deref-suggestion.stderr
unboxed-closures and type-alias-impl-trait nll revisions
[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    |
7 help: `(sess as *const Session)` is a raw pointer; try dereferencing it
8    |
9 LL |     (*(sess as *const Session)).opts;
10    |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11
12 error[E0609]: no field `0` on type `[u32; 1]`
13   --> $DIR/parenthesized-deref-suggestion.rs:10:21
14    |
15 LL |     (x as [u32; 1]).0;
16    |     ----------------^
17    |     |
18    |     help: instead of using tuple indexing, use array indexing: `(x as [u32; 1])[0]`
19
20 error: aborting due to 2 previous errors
21
22 For more information about this error, try `rustc --explain E0609`.