summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/issue-78655.rs
blob: 82d2d7c21d859e87ada14ab3df1f97b6d42f97a6 (plain)
1
2
3
4
5
6
7
8
9
10
const FOO: *const u32 = {
    let x;
    &x //~ ERROR E0381
};

fn main() {
    let FOO = FOO;
    //~^ ERROR could not evaluate constant pattern
    //~| ERROR could not evaluate constant pattern
}