Skip to content

Commit

Permalink
Update ui test suite to nightly-2025-01-02
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 2, 2025
1 parent 9c0fb8b commit af0937e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/ui/ensure-nonbool.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit af0937e

Please # to comment.