]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-78655.stderr
Bless nll tests.
[rust.git] / src / test / ui / consts / issue-78655.stderr
1 error[E0381]: borrow of possibly-uninitialized variable: `x`
2   --> $DIR/issue-78655.rs:3:5
3    |
4 LL |     &x
5    |     ^^ use of possibly-uninitialized `x`
6
7 error: encountered dangling pointer in final constant
8   --> $DIR/issue-78655.rs:1:1
9    |
10 LL | / const FOO: *const u32 = {
11 LL | |     let x;
12 LL | |     &x
13 LL | | };
14    | |__^
15
16 error: could not evaluate constant pattern
17   --> $DIR/issue-78655.rs:7:9
18    |
19 LL |     let FOO = FOO;
20    |         ^^^
21
22 error: could not evaluate constant pattern
23   --> $DIR/issue-78655.rs:7:9
24    |
25 LL |     let FOO = FOO;
26    |         ^^^
27
28 error: aborting due to 4 previous errors
29
30 For more information about this error, try `rustc --explain E0381`.