summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/non-scalar-cast.rs
blob: 671366c90ec8ea7a8319127b4a8bcfbeeaf7fe6d (plain)
1
2
3
4
5
6
7
8
9
// run-pass

// https://github.com/rust-lang/rust/issues/37448

fn main() {
    struct A;
    const FOO: &A = &(A as A);
    let _x = FOO;
}