summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-71394-no-from-impl.rs
blob: 63f12a912824e8189b8bbabc40b0d559bc6aa90c (plain)
1
2
3
4
5
6
7
8
9
10
// 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
}