about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/async-await/issue-66387-if-without-else.stderr4
-rw-r--r--src/test/ui/proc-macro/span-preservation.stderr15
-rw-r--r--src/test/ui/unboxed-closures/issue-30904.stderr24
3 files changed, 4 insertions, 39 deletions
diff --git a/src/test/ui/async-await/issue-66387-if-without-else.stderr b/src/test/ui/async-await/issue-66387-if-without-else.stderr
index 32952059525..42e44472aca 100644
--- a/src/test/ui/async-await/issue-66387-if-without-else.stderr
+++ b/src/test/ui/async-await/issue-66387-if-without-else.stderr
@@ -4,10 +4,8 @@ error[E0317]: if may be missing an else clause
 LL | /     if true {
 LL | |         return 0;
 LL | |     }
-   | |_____^ expected (), found i32
+   | |_____^ expected `()`, found `i32`
    |
-   = note: expected type `()`
-              found type `i32`
    = note: `if` expressions without `else` evaluate to `()`
    = help: consider adding an `else` block that evaluates to the expected type
 
diff --git a/src/test/ui/proc-macro/span-preservation.stderr b/src/test/ui/proc-macro/span-preservation.stderr
index f669b4e9265..c9783808177 100644
--- a/src/test/ui/proc-macro/span-preservation.stderr
+++ b/src/test/ui/proc-macro/span-preservation.stderr
@@ -33,10 +33,7 @@ error[E0308]: mismatched types
 LL | extern fn bar() {
    |                 - possibly return type missing here?
 LL |     0
-   |     ^ expected (), found integer
-   |
-   = note: expected type `()`
-              found type `{integer}`
+   |     ^ expected `()`, found integer
 
 error[E0308]: mismatched types
   --> $DIR/span-preservation.rs:44:5
@@ -52,10 +49,7 @@ error[E0308]: mismatched types
 LL | extern "Rust" fn rust_abi() {
    |                             - possibly return type missing here?
 LL |     0
-   |     ^ expected (), found integer
-   |
-   = note: expected type `()`
-              found type `{integer}`
+   |     ^ expected `()`, found integer
 
 error[E0308]: mismatched types
   --> $DIR/span-preservation.rs:54:5
@@ -63,10 +57,7 @@ error[E0308]: mismatched types
 LL | extern "\x43" fn c_abi_escaped() {
    |                                  - possibly return type missing here?
 LL |     0
-   |     ^ expected (), found integer
-   |
-   = note: expected type `()`
-              found type `{integer}`
+   |     ^ expected `()`, found integer
 
 error: aborting due to 8 previous errors
 
diff --git a/src/test/ui/unboxed-closures/issue-30904.stderr b/src/test/ui/unboxed-closures/issue-30904.stderr
deleted file mode 100644
index aa0e05e9420..00000000000
--- a/src/test/ui/unboxed-closures/issue-30904.stderr
+++ /dev/null
@@ -1,24 +0,0 @@
-error[E0308]: mismatched types
-  --> $DIR/issue-30904.rs:20:45
-   |
-LL |     let _: for<'a> fn(&'a str) -> Str<'a> = Str;
-   |                                             ^^^ expected concrete lifetime, found bound lifetime parameter 'a
-   |
-   = note: expected fn pointer `for<'a> fn(&'a str) -> Str<'a>`
-                 found fn item `fn(&str) -> Str<'_> {Str::<'_>}`
-
-error[E0631]: type mismatch in function arguments
-  --> $DIR/issue-30904.rs:26:10
-   |
-LL | fn test<F: for<'x> FnOnce<(&'x str,)>>(_: F) {}
-   |    ----    -------------------------- required by this bound in `test`
-...
-LL | struct Str<'a>(&'a str);
-   | ------------------------ found signature of `fn(&str) -> _`
-...
-LL |     test(Str);
-   |          ^^^ expected signature of `for<'x> fn(&'x str) -> _`
-
-error: aborting due to 2 previous errors
-
-For more information about this error, try `rustc --explain E0308`.