]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-32122-1.stderr
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[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    |            ---------   ^^
6    |            |           |
7    |            |           expected `u8`, found struct `Foo`
8    |            |           help: consider dereferencing: `&*a`
9    |            expected due to this
10    |
11    = note: expected raw pointer `*const u8`
12                 found reference `&Foo`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0308`.