From af0937ef72fbaf9784a6c991e029738728d025e2 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 1 Jan 2025 18:20:00 -0800 Subject: [PATCH] Update ui test suite to nightly-2025-01-02 --- tests/ui/ensure-nonbool.stderr | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/ui/ensure-nonbool.stderr b/tests/ui/ensure-nonbool.stderr index 3fdb8e6..1fff52d 100644 --- a/tests/ui/ensure-nonbool.stderr +++ b/tests/ui/ensure-nonbool.stderr @@ -25,15 +25,16 @@ error[E0277]: the trait bound `&mut bool: __private::not::Bool` is not satisfied | | the trait `__private::not::Bool` is not implemented for `&mut bool` | required by a bound introduced by this call | - = help: the following other types implement trait `__private::not::Bool`: - &bool - bool = note: `__private::not::Bool` is implemented for `&bool`, but not for `&mut bool` note: required by a bound in `anyhow::__private::not` --> src/lib.rs | | pub fn not(cond: impl Bool) -> bool { | ^^^^ required by this bound in `not` +help: consider dereferencing here + | +29 | Bool(cond) => ensure!(*cond), + | + error[E0277]: the trait bound `DerefBool: __private::not::Bool` is not satisfied --> tests/ui/ensure-nonbool.rs:33:13 @@ -44,14 +45,15 @@ error[E0277]: the trait bound `DerefBool: __private::not::Bool` is not satisfied | | the trait `__private::not::Bool` is not implemented for `DerefBool` | required by a bound introduced by this call | - = help: the following other types implement trait `__private::not::Bool`: - &bool - bool note: required by a bound in `anyhow::__private::not` --> src/lib.rs | | pub fn not(cond: impl Bool) -> bool { | ^^^^ required by this bound in `not` +help: consider dereferencing here + | +33 | ensure!(*db); + | + error[E0277]: the trait bound `&DerefBool: __private::not::Bool` is not satisfied --> tests/ui/ensure-nonbool.rs:34:13