Skip to content

Commit 647922f

Browse files
Fix tests after beta backport
1 parent 650421c commit 647922f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/ui/type-alias-impl-trait/issue-98604.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | async fn test() {}
1111
| ^ checked the `Output` of this `async fn`, found opaque type
1212
= note: expected struct `Pin<Box<(dyn Future<Output = ()> + 'static)>>`
1313
found opaque type `impl Future<Output = ()>`
14-
= note: required for the cast from `fn() -> impl Future<Output = ()> {test}` to the object type `dyn Fn() -> Pin<Box<(dyn Future<Output = ()> + 'static)>>`
14+
= note: required for the cast to the object type `dyn Fn() -> Pin<Box<(dyn Future<Output = ()> + 'static)>>`
1515

1616
error: aborting due to previous error
1717

src/test/ui/type-alias-impl-trait/issue-98608.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LL | let b: Box<dyn Fn() -> Box<u8>> = Box::new(hi);
99
|
1010
= note: expected struct `Box<u8>`
1111
found opaque type `impl Sized`
12-
= note: required for the cast from `fn() -> impl Sized {hi}` to the object type `dyn Fn() -> Box<u8>`
12+
= note: required for the cast to the object type `dyn Fn() -> Box<u8>`
1313

1414
error: aborting due to previous error
1515

0 commit comments

Comments
 (0)