rust/src/test/ui/impossible_range.stderr
Mazdak Farrokhzad 883932c6ba Ban ...X pats, harden tests, and improve diagnostics.
Also fix a bug with the span passed in `mk_range`.
2020-01-11 08:58:58 +01:00

19 lines
539 B
Text

error[E0586]: inclusive range with no end
--> $DIR/impossible_range.rs:8:5
|
LL | ..=;
| ^^^ help: use `..` instead
|
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
error[E0586]: inclusive range with no end
--> $DIR/impossible_range.rs:15:6
|
LL | 0..=;
| ^^^ help: use `..` instead
|
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0586`.