Skip to content

Commit

Permalink
tests: ui: compile-fail: init: fix nightly output
Browse files Browse the repository at this point in the history
  • Loading branch information
y86-dev committed Jul 23, 2024
1 parent 12e63c3 commit 931dd7f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/ui/compile-fail/init/no_error_coercion.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ error[E0277]: `?` couldn't convert the error to `std::alloc::AllocError`
| |______________________^ the trait `From<Infallible>` is not implemented for `std::alloc::AllocError`, which is required by `Result<Foo::new::__InitOk, std::alloc::AllocError>: FromResidual<Result<Infallible, Infallible>>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `FromResidual<R>`:
`Result<T, F>` implements `FromResidual<Result<Infallible, E>>`
`Result<T, F>` implements `FromResidual<Yeet<E>>`
= help: the trait `FromResidual<Result<Infallible, E>>` is implemented for `Result<T, F>`
= note: required for `Result<Foo::new::__InitOk, std::alloc::AllocError>` to implement `FromResidual<Result<Infallible, Infallible>>`
= 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 comments on commit 931dd7f

Please sign in to comment.