Skip to content

Commit 3345d0f

Browse files
committed
tests: ui: compile-fail: init: nightly update
1 parent d8873bc commit 3345d0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ui/compile-fail/init/no_error_coercion.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ error[E0277]: `?` couldn't convert the error to `std::alloc::AllocError`
99
|
1010
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
1111
= help: the following other types implement trait `FromResidual<R>`:
12-
<Result<T, F> as FromResidual<Result<Infallible, E>>>
13-
<Result<T, F> as FromResidual<Yeet<E>>>
12+
`Result<T, F>` implements `FromResidual<Result<Infallible, E>>`
13+
`Result<T, F>` implements `FromResidual<Yeet<E>>`
1414
= note: required for `Result<Foo::new::__InitOk, std::alloc::AllocError>` to implement `FromResidual<Result<Infallible, Infallible>>`
1515
= note: this error originates in the macro `$crate::__init_internal` which comes from the expansion of the macro `try_init` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)