From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/parser/range_inclusive_dotdotdot.stderr | 62 ++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 tests/ui/parser/range_inclusive_dotdotdot.stderr (limited to 'tests/ui/parser/range_inclusive_dotdotdot.stderr') diff --git a/tests/ui/parser/range_inclusive_dotdotdot.stderr b/tests/ui/parser/range_inclusive_dotdotdot.stderr new file mode 100644 index 000000000..2dc2c87eb --- /dev/null +++ b/tests/ui/parser/range_inclusive_dotdotdot.stderr @@ -0,0 +1,62 @@ +error: unexpected token: `...` + --> $DIR/range_inclusive_dotdotdot.rs:6:12 + | +LL | return ...1; + | ^^^ + | +help: use `..` for an exclusive range + | +LL | return ..1; + | ~~ +help: or `..=` for an inclusive range + | +LL | return ..=1; + | ~~~ + +error: unexpected token: `...` + --> $DIR/range_inclusive_dotdotdot.rs:12:13 + | +LL | let x = ...0; + | ^^^ + | +help: use `..` for an exclusive range + | +LL | let x = ..0; + | ~~ +help: or `..=` for an inclusive range + | +LL | let x = ..=0; + | ~~~ + +error: unexpected token: `...` + --> $DIR/range_inclusive_dotdotdot.rs:16:14 + | +LL | let x = 5...5; + | ^^^ + | +help: use `..` for an exclusive range + | +LL | let x = 5..5; + | ~~ +help: or `..=` for an inclusive range + | +LL | let x = 5..=5; + | ~~~ + +error: unexpected token: `...` + --> $DIR/range_inclusive_dotdotdot.rs:20:15 + | +LL | for _ in 0...1 {} + | ^^^ + | +help: use `..` for an exclusive range + | +LL | for _ in 0..1 {} + | ~~ +help: or `..=` for an inclusive range + | +LL | for _ in 0..=1 {} + | ~~~ + +error: aborting due to 4 previous errors + -- cgit v1.2.3