]> git.proxmox.com Git - rustc.git/blame - src/test/ui/pattern/non-constant-in-const-path.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / pattern / non-constant-in-const-path.stderr
CommitLineData
136023e0
XL
1error[E0080]: runtime values cannot be referenced in patterns
2 --> $DIR/non-constant-in-const-path.rs:8:15
3 |
4LL | let 0u8..=x = 0;
5 | ^
6
7error[E0158]: statics cannot be referenced in patterns
8 --> $DIR/non-constant-in-const-path.rs:10:15
9 |
10LL | let 0u8..=FOO = 0;
11 | ^^^
12
13error[E0080]: runtime values cannot be referenced in patterns
14 --> $DIR/non-constant-in-const-path.rs:13:15
15 |
16LL | 0 ..= x => {}
17 | ^
18
19error[E0158]: statics cannot be referenced in patterns
20 --> $DIR/non-constant-in-const-path.rs:15:15
21 |
22LL | 0 ..= FOO => {}
23 | ^^^
24
25error: aborting due to 4 previous errors
26
27Some errors have detailed explanations: E0080, E0158.
28For more information about an error, try `rustc --explain E0080`.