blob: f5a5f1ab37ae662c401f9f140a86823006520ab6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
error[E0308]: mismatched types
--> $DIR/point-to-type-err-cause-on-impl-trait-return-2.rs:9:41
|
LL | let value: &bool = unsafe { &42 };
| ^^^ expected `bool`, found integer
|
= note: expected reference `&bool`
found reference `&{integer}`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.
|