summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-eval/ub-wide-ptr.chalk.64bit.stderr
blob: 533db90ce6c9ea289f55b08ef74a98cab8be87e8 (plain)
1
2
3
4
5
6
7
8
9
error[E0282]: type annotations needed
  --> $DIR/ub-wide-ptr.rs:90:67
   |
LL | const MYSLICE_SUFFIX_BAD: &MySliceBool = &MySlice(true, [unsafe { mem::transmute(3u8) }]);
   |                                                                   ^^^^^^^^^^^^^^ cannot infer type for type parameter `U` declared on the function `transmute`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0282`.