mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
8 lines
158 B
Rust
8 lines
158 B
Rust
//@ run-pass (ensure that const-prop is run)
|
|
|
|
struct A<T: ?Sized>(T);
|
|
|
|
fn main() {
|
|
let _x = &(&A([2, 3]) as &A<[i32]>).0 as *const [i32] as *const i32;
|
|
}
|