diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
commit | 64d98f8ee037282c35007b64c2649055c56af1db (patch) | |
tree | 5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /src/test/ui/obsolete-in-place | |
parent | Adding debian version 1.67.1+dfsg1-1. (diff) | |
download | rustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/obsolete-in-place')
-rw-r--r-- | src/test/ui/obsolete-in-place/bad.rs | 11 | ||||
-rw-r--r-- | src/test/ui/obsolete-in-place/bad.stderr | 19 |
2 files changed, 0 insertions, 30 deletions
diff --git a/src/test/ui/obsolete-in-place/bad.rs b/src/test/ui/obsolete-in-place/bad.rs deleted file mode 100644 index a491bb21a..000000000 --- a/src/test/ui/obsolete-in-place/bad.rs +++ /dev/null @@ -1,11 +0,0 @@ -// Check that `<-` and `in` syntax gets a hard error. - -fn foo() { - let (x, y) = (0, 0); - x <- y; //~ ERROR unexpected token: `<-` -} - -fn main() { - let (foo, bar) = (0, 0); - in(foo) { bar }; //~ ERROR expected expression, found keyword `in` -} diff --git a/src/test/ui/obsolete-in-place/bad.stderr b/src/test/ui/obsolete-in-place/bad.stderr deleted file mode 100644 index 363dfb776..000000000 --- a/src/test/ui/obsolete-in-place/bad.stderr +++ /dev/null @@ -1,19 +0,0 @@ -error: unexpected token: `<-` - --> $DIR/bad.rs:5:7 - | -LL | x <- y; - | ^^ - | -help: if you meant to write a comparison against a negative value, add a space in between `<` and `-` - | -LL | x < - y; - | ~~~ - -error: expected expression, found keyword `in` - --> $DIR/bad.rs:10:5 - | -LL | in(foo) { bar }; - | ^^ expected expression - -error: aborting due to 2 previous errors - |