Check const-propagation of borrows of unsized places

This commit is contained in:
Matthew Jasper 2019-09-17 19:32:40 +01:00
parent 7081c79b7e
commit 7b0cc6a439
1 changed files with 7 additions and 0 deletions

View File

@ -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;
}