Chris Wailes | 54272ac | 2021-09-09 16:08:13 -0700 | [diff] [blame^] | 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`. |