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

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