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 32952059525a0..42e44472aca71 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 f669b4e9265d1..c978380817791 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 aa0e05e94203a..0000000000000 --- 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 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`.