mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 09:44:08 +00:00
11 lines
217 B
Rust
11 lines
217 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
|
|
}
|