]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/non-constant-in-const-path.stderr
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / pattern / non-constant-in-const-path.stderr
1 error[E0080]: runtime values cannot be referenced in patterns
2   --> $DIR/non-constant-in-const-path.rs:8:15
3    |
4 LL |     let 0u8..=x = 0;
5    |               ^
6
7 error[E0158]: statics cannot be referenced in patterns
8   --> $DIR/non-constant-in-const-path.rs:10:15
9    |
10 LL |     let 0u8..=FOO = 0;
11    |               ^^^
12
13 error[E0080]: runtime values cannot be referenced in patterns
14   --> $DIR/non-constant-in-const-path.rs:13:15
15    |
16 LL |         0 ..= x => {}
17    |               ^
18
19 error[E0158]: statics cannot be referenced in patterns
20   --> $DIR/non-constant-in-const-path.rs:15:15
21    |
22 LL |         0 ..= FOO => {}
23    |               ^^^
24
25 error: aborting due to 4 previous errors
26
27 Some errors have detailed explanations: E0080, E0158.
28 For more information about an error, try `rustc --explain E0080`.