rust/tests/ui/consts/issue-78655.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
538 B
Plaintext
Raw Normal View History

2022-06-21 22:54:17 +00:00
error[E0381]: used binding `x` isn't initialized
--> $DIR/issue-78655.rs:3:5
|
LL | let x;
2022-06-21 22:54:17 +00:00
| - binding declared here but left uninitialized
LL | &x
2022-06-21 22:54:17 +00:00
| ^^ `x` used here but it isn't initialized
|
help: consider assigning a value
|
2024-04-10 20:01:20 +00:00
LL | let x = 42;
| ++++
error: could not evaluate constant pattern
--> $DIR/issue-78655.rs:7:9
|
LL | let FOO = FOO;
| ^^^
2023-02-27 17:43:39 +00:00
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0381`.