rust/src/test/ui/maybe-bounds-where-cpass.rs
2018-12-25 21:08:33 -07:00

10 lines
132 B
Rust

// compile-pass
struct S<T>(*const T) where T: ?Sized;
fn main() {
let u = vec![1, 2, 3];
let _s: S<[u8]> = S(&u[..]);
}