1 error[E0080]: runtime values cannot be referenced in patterns
2 --> $DIR/non-constant-in-const-path.rs:8:15
7 error[E0158]: statics cannot be referenced in patterns
8 --> $DIR/non-constant-in-const-path.rs:10:15
10 LL | let 0u8..=FOO = 0;
13 error[E0080]: runtime values cannot be referenced in patterns
14 --> $DIR/non-constant-in-const-path.rs:13:15
19 error[E0158]: statics cannot be referenced in patterns
20 --> $DIR/non-constant-in-const-path.rs:15:15
25 error: aborting due to 4 previous errors
27 Some errors have detailed explanations: E0080, E0158.
28 For more information about an error, try `rustc --explain E0080`.