mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 00:24:03 +00:00
10 lines
445 B
Plaintext
10 lines
445 B
Plaintext
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`.
|