diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:58 +0000 |
commit | a4b7ed7a42c716ab9f05e351f003d589124fd55d (patch) | |
tree | b620cd3f223850b28716e474e80c58059dca5dd4 /src/test/ui/obsolete-in-place | |
parent | Adding upstream version 1.67.1+dfsg1. (diff) | |
download | rustc-a4b7ed7a42c716ab9f05e351f003d589124fd55d.tar.xz rustc-a4b7ed7a42c716ab9f05e351f003d589124fd55d.zip |
Adding upstream version 1.68.2+dfsg1.upstream/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 - |