2023-01-31 22:29:19 -06:00
|
|
|
// ignore-wasm
|
|
|
|
// ignore-msvc
|
|
|
|
// ignore-emscripten
|
|
|
|
// ignore-uwp
|
|
|
|
|
2020-04-27 14:34:00 -05:00
|
|
|
fn main() {
|
|
|
|
let data: &[u8] = &[0; 10];
|
|
|
|
let _: &[i8] = data.into();
|
2020-09-02 02:40:56 -05:00
|
|
|
//~^ ERROR the trait bound `&[i8]: From<&[u8]>` is not satisfied
|
2020-04-27 14:34:00 -05:00
|
|
|
}
|