Check const-propagation of borrows of unsized places
This commit is contained in:
parent
7081c79b7e
commit
7b0cc6a439
|
@ -0,0 +1,7 @@
|
|||
// 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;
|
||||
}
|
Loading…
Reference in New Issue