2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2016-10-21 19:33:36 -05:00
|
|
|
|
|
|
|
struct S<T>(*const T) where T: ?Sized;
|
|
|
|
|
2018-10-31 07:08:01 -05:00
|
|
|
|
|
|
|
fn main() {
|
2016-10-21 19:33:36 -05:00
|
|
|
let u = vec![1, 2, 3];
|
|
|
|
let _s: S<[u8]> = S(&u[..]);
|
|
|
|
}
|