diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
commit | 218caa410aa38c29984be31a5229b9fa717560ee (patch) | |
tree | c54bd55eeb6e4c508940a30e94c0032fbd45d677 /tests/ui/parser/range_inclusive_dotdotdot.stderr | |
parent | Releasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/parser/range_inclusive_dotdotdot.stderr')
-rw-r--r-- | tests/ui/parser/range_inclusive_dotdotdot.stderr | 62 |
1 files changed, 62 insertions, 0 deletions
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 + |