From 931dd7f4d243f136819d35e46d9280cb17d3190c Mon Sep 17 00:00:00 2001 From: y86-dev Date: Tue, 23 Jul 2024 11:10:08 +0200 Subject: [PATCH] tests: ui: compile-fail: init: fix nightly output --- tests/ui/compile-fail/init/no_error_coercion.stderr | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/ui/compile-fail/init/no_error_coercion.stderr b/tests/ui/compile-fail/init/no_error_coercion.stderr index 1f20430..3feba12 100644 --- a/tests/ui/compile-fail/init/no_error_coercion.stderr +++ b/tests/ui/compile-fail/init/no_error_coercion.stderr @@ -8,8 +8,6 @@ error[E0277]: `?` couldn't convert the error to `std::alloc::AllocError` | |______________________^ the trait `From` is not implemented for `std::alloc::AllocError`, which is required by `Result: FromResidual>` | = 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`: - `Result` implements `FromResidual>` - `Result` implements `FromResidual>` + = help: the trait `FromResidual>` is implemented for `Result` = note: required for `Result` to implement `FromResidual>` = 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)