Skip to content
Myr

Update ui test suite to nightly-2025-01-02

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 9c0fb8b · Browse files · 1 file+8 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−6 removed

  • tests:+8 added−6 removed

1 file+8 added−6 removed

modified:tests/ui/ensure-nonbool.stderr+8 added-6 removed
23 unmodified lines
24 | | |25 | | the trait `__private::not::Bool` is not implemented for `&mut bool`26 | required by a bound introduced by this call27 |28 = help: the following other types implement trait `__private::not::Bool`:29 &bool30 bool28 = note: `__private::not::Bool` is implemented for `&bool`, but not for `&mut bool`29note: required by a bound in `anyhow::__private::not`30 --> src/lib.rs31 |32 | pub fn not(cond: impl Bool) -> bool {33 | ^^^^ required by this bound in `not`34help: consider dereferencing here35 |3629 | Bool(cond) => ensure!(*cond),37 | +3839error[E0277]: the trait bound `DerefBool: __private::not::Bool` is not satisfied40 --> tests/ui/ensure-nonbool.rs:33:1341 |
2 unmodified lines
44 | | |45 | | the trait `__private::not::Bool` is not implemented for `DerefBool`46 | required by a bound introduced by this call47 |47 = help: the following other types implement trait `__private::not::Bool`:48 &bool49 bool48note: required by a bound in `anyhow::__private::not`49 --> src/lib.rs50 |51 | pub fn not(cond: impl Bool) -> bool {52 | ^^^^ required by this bound in `not`53help: consider dereferencing here54 |5533 | ensure!(*db);56 | +5758error[E0277]: the trait bound `&DerefBool: __private::not::Bool` is not satisfied59 --> tests/ui/ensure-nonbool.rs:34:1360 |
33 unmodified lines