rust/tests/ui/suggestions/issue-71394-no-from-impl.rs
2023-04-19 12:42:20 +08:00

11 lines
213 B
Rust

// ignore-wasm
// ignore-msvc
// ignore-emscripten
// ignore-uwp
fn main() {
let data: &[u8] = &[0; 10];
let _: &[i8] = data.into();
//~^ ERROR the trait bound `&[i8]: From<&[u8]>` is not satisfied
}