fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
725 B22 linesraw
1error[E0609]: no field `opts` on type `*const Session`
2  --> $DIR/parenthesized-deref-suggestion.rs:7:30
3   |
4LL |     (sess as *const Session).opts;
5   |                              ^^^^
6   |
7help: `(sess as *const Session)` is a raw pointer; try dereferencing it
8   |
9LL |     (*(sess as *const Session)).opts;
10   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11
12error[E0609]: no field `0` on type `[u32; 1]`
13  --> $DIR/parenthesized-deref-suggestion.rs:10:21
14   |
15LL |     (x as [u32; 1]).0;
16   |     ----------------^
17   |     |
18   |     help: instead of using tuple indexing, use array indexing: `(x as [u32; 1])[0]`
19
20error: aborting due to 2 previous errors
21
22For more information about this error, try `rustc --explain E0609`.