summary refs log tree commit diff
path: root/src/test/ui/consts/issue-78655.rs
blob: 066764bc46fc4ca158168c9006c4cac16d495b8f (plain)
1
2
3
4
5
6
7
8
9
10
const FOO: *const u32 = { //~ ERROR encountered dangling pointer in final constant
    let x;
    &x //~ ERROR borrow of possibly-uninitialized variable: `x`
};

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