diff options
Diffstat (limited to 'tests/ui/parser/dotdotdot-expr.stderr')
-rw-r--r-- | tests/ui/parser/dotdotdot-expr.stderr | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/parser/dotdotdot-expr.stderr b/tests/ui/parser/dotdotdot-expr.stderr new file mode 100644 index 000000000..e7203f24d --- /dev/null +++ b/tests/ui/parser/dotdotdot-expr.stderr @@ -0,0 +1,17 @@ +error: unexpected token: `...` + --> $DIR/dotdotdot-expr.rs:2:24 + | +LL | let _redemptive = 1...21; + | ^^^ + | +help: use `..` for an exclusive range + | +LL | let _redemptive = 1..21; + | ~~ +help: or `..=` for an inclusive range + | +LL | let _redemptive = 1..=21; + | ~~~ + +error: aborting due to previous error + |