about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJack Huey <31162821+jackh726@users.noreply.github.com>2022-04-16 12:56:22 -0400
committerJack Huey <31162821+jackh726@users.noreply.github.com>2022-05-06 16:55:53 -0400
commit7bf47bfd32836dd2db6840b591014a90114245bb (patch)
tree501c53410091fa1900a353bd3ef171c4207c4b9e
parentd60b4f52c92facae291151dd5a23399f8044d01e (diff)
downloadrust-7bf47bfd32836dd2db6840b591014a90114245bb.tar.gz
rust-7bf47bfd32836dd2db6840b591014a90114245bb.zip
Remove previously deleted test files
-rw-r--r--src/test/ui/const-generics/const-argument-cross-crate-mismatch.min.stderr29
-rw-r--r--src/test/ui/estr-subtyping.rs15
-rw-r--r--src/test/ui/estr-subtyping.stderr18
-rw-r--r--src/test/ui/span/E0057.rs6
-rw-r--r--src/test/ui/span/E0057.stderr25
5 files changed, 0 insertions, 93 deletions
diff --git a/src/test/ui/const-generics/const-argument-cross-crate-mismatch.min.stderr b/src/test/ui/const-generics/const-argument-cross-crate-mismatch.min.stderr
deleted file mode 100644
index e9854f0b9b5..00000000000
--- a/src/test/ui/const-generics/const-argument-cross-crate-mismatch.min.stderr
+++ /dev/null
@@ -1,29 +0,0 @@
-error[E0308]: arguments to this function are incorrect
-  --> $DIR/const-argument-cross-crate-mismatch.rs:7:41
-   |
-LL |     let _ = const_generic_lib::function(const_generic_lib::Struct([0u8, 1u8]));
-   |                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^----------^
-   |                                                                   |
-   |                                                                   expected `[u8; 3]`, found `[u8; 2]`
-   |
-help: provide an argument of the correct type
-   |
-LL |     let _ = const_generic_lib::function(({[u8; 3]}));
-   |                                         ^^^^^^^^^^^
-
-error[E0308]: arguments to this function are incorrect
-  --> $DIR/const-argument-cross-crate-mismatch.rs:9:39
-   |
-LL |     let _: const_generic_lib::Alias = const_generic_lib::Struct([0u8, 1u8, 2u8]);
-   |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^---------------^
-   |                                                                 |
-   |                                                                 expected `[u8; 2]`, found `[u8; 3]`
-   |
-help: provide an argument of the correct type
-   |
-LL |     let _: const_generic_lib::Alias = ({[u8; 2]});
-   |                                       ^^^^^^^^^^^
-
-error: aborting due to 2 previous errors
-
-For more information about this error, try `rustc --explain E0308`.
diff --git a/src/test/ui/estr-subtyping.rs b/src/test/ui/estr-subtyping.rs
deleted file mode 100644
index 9c5825fff85..00000000000
--- a/src/test/ui/estr-subtyping.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-fn wants_uniq(x: String) { }
-fn wants_slice(x: &str) { }
-
-fn has_uniq(x: String) {
-   wants_uniq(x);
-   wants_slice(&*x);
-}
-
-fn has_slice(x: &str) {
-   wants_uniq(x); //~ ERROR mismatched types
-   wants_slice(x);
-}
-
-fn main() {
-}
diff --git a/src/test/ui/estr-subtyping.stderr b/src/test/ui/estr-subtyping.stderr
deleted file mode 100644
index adebb7d1e63..00000000000
--- a/src/test/ui/estr-subtyping.stderr
+++ /dev/null
@@ -1,18 +0,0 @@
-error[E0308]: mismatched types
-  --> $DIR/estr-subtyping.rs:10:15
-   |
-LL |    wants_uniq(x);
-   |    ---------- ^- help: try using a conversion method: `.to_string()`
-   |    |          |
-   |    |          expected struct `String`, found `&str`
-   |    arguments to this function are incorrect
-   |
-note: function defined here
-  --> $DIR/estr-subtyping.rs:1:4
-   |
-LL | fn wants_uniq(x: String) { }
-   |    ^^^^^^^^^^ ---------
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0308`.
diff --git a/src/test/ui/span/E0057.rs b/src/test/ui/span/E0057.rs
deleted file mode 100644
index 83f941f65b9..00000000000
--- a/src/test/ui/span/E0057.rs
+++ /dev/null
@@ -1,6 +0,0 @@
-fn main() {
-    let f = |x| x * 3;
-    let a = f(); //~ ERROR E0057
-    let b = f(4);
-    let c = f(2, 3); //~ ERROR E0057
-}
diff --git a/src/test/ui/span/E0057.stderr b/src/test/ui/span/E0057.stderr
deleted file mode 100644
index a151b20f865..00000000000
--- a/src/test/ui/span/E0057.stderr
+++ /dev/null
@@ -1,25 +0,0 @@
-error[E0057]: this function takes 1 argument but 0 arguments were supplied
-  --> $DIR/E0057.rs:3:13
-   |
-LL |     let a = f();
-   |             ^-- an argument is missing
-   |
-help: provide the argument
-   |
-LL |     let a = f({_});
-   |             ~~~~~~
-
-error[E0057]: this function takes 1 argument but 2 arguments were supplied
-  --> $DIR/E0057.rs:5:13
-   |
-LL |     let c = f(2, 3);
-   |             ^    - argument unexpected
-   |
-help: remove the extra argument
-   |
-LL |     let c = f(2);
-   |             ~~~~
-
-error: aborting due to 2 previous errors
-
-For more information about this error, try `rustc --explain E0057`.