fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
547 B26 linesraw
1error[E0606]: casting `&u8` as `u8` is invalid
2  --> $DIR/E0606.rs:2:14
3   |
4LL |     let x = &(&0u8 as u8);
5   |              ^^^^^^^^^^^^
6   |
7help: remove the unneeded borrow
8   |
9LL -     let x = &(&0u8 as u8);
10LL +     let x = &(0u8 as u8);
11   |
12
13error[E0606]: casting `&u8` as `u8` is invalid
14  --> $DIR/E0606.rs:3:5
15   |
16LL |     x as u8;
17   |     ^^^^^^^
18   |
19help: dereference the expression
20   |
21LL |     *x as u8;
22   |     +
23
24error: aborting due to 2 previous errors
25
26For more information about this error, try `rustc --explain E0606`.