1 // Type ascription doesn't lead to unsoundness
3 #![feature(type_ascription)]
6 let arr = &[1u8, 2, 3];
7 let ref x = arr: &[u8]; //~ ERROR mismatched types
8 let ref mut x = arr: &[u8]; //~ ERROR mismatched types
9 match arr: &[u8] { //~ ERROR mismatched types
12 let _len = (arr: &[u8]).len(); //~ ERROR mismatched types