summaryrefslogtreecommitdiffstats
path: root/tests/ui/point-to-type-err-cause-on-impl-trait-return-2.stderr
blob: a8d0d623604060ed19cb517ca95d00f472ec6b54 (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`.