]> git.lizzy.rs Git - rust.git/commitdiff
Remove recovery test
authorAaron Hill <aa1ronham@gmail.com>
Wed, 19 Feb 2020 15:48:13 +0000 (10:48 -0500)
committerAaron Hill <aa1ronham@gmail.com>
Wed, 4 Mar 2020 21:43:14 +0000 (16:43 -0500)
src/test/ui/parser/recovery-attr-on-if.rs [deleted file]
src/test/ui/parser/recovery-attr-on-if.stderr [deleted file]

diff --git a/src/test/ui/parser/recovery-attr-on-if.rs b/src/test/ui/parser/recovery-attr-on-if.rs
deleted file mode 100644 (file)
index b4fb25e..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-fn main() {
-    #[attr] if true {};
-    //~^ ERROR cannot find attribute
-    #[attr] if true {};
-    //~^ ERROR cannot find attribute
-    let _recovery_witness: () = 0; //~ ERROR mismatched types
-}
diff --git a/src/test/ui/parser/recovery-attr-on-if.stderr b/src/test/ui/parser/recovery-attr-on-if.stderr
deleted file mode 100644 (file)
index cbf2714..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-error: cannot find attribute `attr` in this scope
-  --> $DIR/recovery-attr-on-if.rs:4:7
-   |
-LL |     #[attr] if true {};
-   |       ^^^^
-
-error: cannot find attribute `attr` in this scope
-  --> $DIR/recovery-attr-on-if.rs:2:7
-   |
-LL |     #[attr] if true {};
-   |       ^^^^
-
-error[E0308]: mismatched types
-  --> $DIR/recovery-attr-on-if.rs:6:33
-   |
-LL |     let _recovery_witness: () = 0;
-   |                            --   ^ expected `()`, found integer
-   |                            |
-   |                            expected due to this
-
-error: aborting due to 3 previous errors
-
-For more information about this error, try `rustc --explain E0308`.