]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-78655.rs
Bless nll tests.
[rust.git] / src / test / ui / consts / issue-78655.rs
1 const FOO: *const u32 = { //~ ERROR encountered dangling pointer in final constant
2     let x;
3     &x //~ ERROR borrow of possibly-uninitialized variable: `x`
4 };
5
6 fn main() {
7     let FOO = FOO;
8     //~^ ERROR could not evaluate constant pattern
9     //~| ERROR could not evaluate constant pattern
10 }