]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-32122-1.stderr
Auto merge of #84267 - dtolnay:ptrunit, r=nagisa
[rust.git] / src / test / ui / issues / issue-32122-1.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-32122-1.rs:16:24
3    |
4 LL |     let _: *const u8 = &a;
5    |            ---------   ^^ expected `u8`, found struct `Foo`
6    |            |
7    |            expected due to this
8    |
9    = note: expected raw pointer `*const u8`
10                 found reference `&Foo`
11 help: consider dereferencing
12    |
13 LL |     let _: *const u8 = &*a;
14    |                         +
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0308`.