]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0030-teach.stderr
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
[rust.git] / src / test / ui / error-codes / E0030-teach.stderr
1 error[E0030]: lower range bound must be less than or equal to upper
2   --> $DIR/E0030-teach.rs:5:9
3    |
4 LL |         1000 ..= 5 => {}
5    |         ^^^^ lower bound larger than upper bound
6    |
7    = note: When matching against a range, the compiler verifies that the range is non-empty. Range patterns include both end-points, so this is equivalent to requiring the start of the range to be less than or equal to the end of the range.
8
9 error[E0030]: lower range bound must be less than or equal to upper
10   --> $DIR/E0030-teach.rs:5:9
11    |
12 LL |         1000 ..= 5 => {}
13    |         ^^^^ lower bound larger than upper bound
14
15 error: aborting due to 2 previous errors
16
17 For more information about this error, try `rustc --explain E0030`.