summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-prop-ice3.rs
blob: 8ab011661e3c51af2f08a12bde127abd558025b4 (plain)
1
2
3
4
5
6
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;
}