]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-32122-2.stderr
Rollup merge of #100168 - WaffleLapkin:improve_diagnostics_for_missing_type_in_a_cons...
[rust.git] / src / test / ui / issues / issue-32122-2.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-32122-2.rs:27:24
3    |
4 LL |     let _: *const u8 = &a;
5    |            ---------   ^^ expected `u8`, found struct `Emm`
6    |            |
7    |            expected due to this
8    |
9    = note: expected raw pointer `*const u8`
10                 found reference `&Emm`
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`.