]> git.lizzy.rs Git - rust.git/blob - tests/ui/half-open-range-patterns/range_pat_interactions2.stderr
Rollup merge of #106648 - Nilstrieb:poly-cleanup, r=compiler-errors
[rust.git] / tests / ui / half-open-range-patterns / range_pat_interactions2.stderr
1 error[E0586]: inclusive range with no end
2   --> $DIR/range_pat_interactions2.rs:10:14
3    |
4 LL |             0..=(5+1) => errors_only.push(x),
5    |              ^^^ help: use `..` instead
6    |
7    = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
8
9 error: expected one of `=>`, `if`, or `|`, found `(`
10   --> $DIR/range_pat_interactions2.rs:10:17
11    |
12 LL |             0..=(5+1) => errors_only.push(x),
13    |                 ^ expected one of `=>`, `if`, or `|`
14
15 error: aborting due to 2 previous errors
16
17 For more information about this error, try `rustc --explain E0586`.