File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,14 @@ error[E0277]: the trait bound `DerefBool: __private::not::Bool` is not satisfied
424233 | ensure!(db);
4343 | --------^^-
4444 | | |
45- | | the trait `__private::not::Bool` is not implemented for `DerefBool`
45+ | | unsatisfied trait bound
4646 | required by a bound introduced by this call
4747 |
48+ help: the trait `__private::not::Bool` is not implemented for `DerefBool`
49+ --> tests/ui/ensure-nonbool.rs:6:1
50+ |
51+ 6 | struct DerefBool(bool);
52+ | ^^^^^^^^^^^^^^^^
4853note: required by a bound in `anyhow::__private::not`
4954 --> src/lib.rs
5055 |
@@ -80,9 +85,14 @@ error[E0277]: the trait bound `NotBool: __private::not::Bool` is not satisfied
808537 | ensure!(nb);
8186 | --------^^-
8287 | | |
83- | | the trait `__private::not::Bool` is not implemented for `NotBool`
88+ | | unsatisfied trait bound
8489 | required by a bound introduced by this call
8590 |
91+ help: the trait `__private::not::Bool` is not implemented for `NotBool`
92+ --> tests/ui/ensure-nonbool.rs:8:1
93+ |
94+ 8 | struct NotBool(bool);
95+ | ^^^^^^^^^^^^^^
8696 = help: the following other types implement trait `__private::not::Bool`:
8797 &bool
8898 bool
You can’t perform that action at this time.
0 commit comments