]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-78655.stderr
Rollup merge of #107004 - compiler-errors:new-solver-new-candidates-2, r=lcnr
[rust.git] / tests / ui / consts / issue-78655.stderr
1 error[E0381]: used binding `x` isn't initialized
2   --> $DIR/issue-78655.rs:3:5
3    |
4 LL |     let x;
5    |         - binding declared here but left uninitialized
6 LL |     &x
7    |     ^^ `x` used here but it isn't initialized
8    |
9 help: consider assigning a value
10    |
11 LL |     let x = 0;
12    |           +++
13
14 error: could not evaluate constant pattern
15   --> $DIR/issue-78655.rs:7:9
16    |
17 LL |     let FOO = FOO;
18    |         ^^^
19
20 error: could not evaluate constant pattern
21   --> $DIR/issue-78655.rs:7:9
22    |
23 LL |     let FOO = FOO;
24    |         ^^^
25
26 error: aborting due to 3 previous errors
27
28 For more information about this error, try `rustc --explain E0381`.