summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/issue-71394-no-from-impl.rs
blob: 0c35deb51e72a52696e7f21023827ed8216f5d5e (plain)
1
2
3
4
5
fn main() {
    let data: &[u8] = &[0; 10];
    let _: &[i8] = data.into();
    //~^ ERROR the trait bound `&[i8]: From<&[u8]>` is not satisfied
}