Debian Codegraph @

tests/ui/ensure-nonbool.stderr

raw
1 error[E0277]: the trait bound `&str: anyhow::__private::not::Bool` is not satisfied
2 --> tests/ui/ensure-nonbool.rs:25:13
3 |
4 25 | ensure!("...");
5 | --------^^^^^-
6 | | |
7 | | the trait `anyhow::__private::not::Bool` is not implemented for `&str`
8 | required by a bound introduced by this call
9 |
10 help: the following other types implement trait `anyhow::__private::not::Bool`
11 --> src/lib.rs
12 |
13 | impl Bool for bool {
14 | ^^^^^^^^^^^^^^^^^^ `bool`
15 ...
16 | impl Bool for &bool {
17 | ^^^^^^^^^^^^^^^^^^^ `&bool`
18 note: required by a bound in `anyhow::__private::not`
19 --> src/lib.rs
20 |
21 | pub fn not(cond: impl Bool) -> bool {
22 | ^^^^ required by this bound in `not`
23
24 error[E0277]: the trait bound `&mut bool: anyhow::__private::not::Bool` is not satisfied
25 --> tests/ui/ensure-nonbool.rs:29:31
26 |
27 29 | Bool(cond) => ensure!(cond),
28 | --------^^^^-
29 | | |
30 | | the trait `anyhow::__private::not::Bool` is not implemented for `&mut bool`
31 | required by a bound introduced by this call
32 |
33 = note: `anyhow::__private::not::Bool` is implemented for `&bool`, but not for `&mut bool`
34 note: required by a bound in `anyhow::__private::not`
35 --> src/lib.rs
36 |
37 | pub fn not(cond: impl Bool) -> bool {
38 | ^^^^ required by this bound in `not`
39 help: consider dereferencing here
40 |
41 29 | Bool(cond) => ensure!(*cond),
42 | +
43
44 error[E0277]: the trait bound `DerefBool: anyhow::__private::not::Bool` is not satisfied
45 --> tests/ui/ensure-nonbool.rs:33:13
46 |
47 33 | ensure!(db);
48 | --------^^-
49 | | |
50 | | unsatisfied trait bound
51 | required by a bound introduced by this call
52 |
53 help: the trait `anyhow::__private::not::Bool` is not implemented for `DerefBool`
54 --> tests/ui/ensure-nonbool.rs:6:1
55 |
56 6 | struct DerefBool(bool);
57 | ^^^^^^^^^^^^^^^^
58 note: required by a bound in `anyhow::__private::not`
59 --> src/lib.rs
60 |
61 | pub fn not(cond: impl Bool) -> bool {
62 | ^^^^ required by this bound in `not`
63 help: consider dereferencing here
64 |
65 33 | ensure!(*db);
66 | +
67
68 error[E0277]: the trait bound `&DerefBool: anyhow::__private::not::Bool` is not satisfied
69 --> tests/ui/ensure-nonbool.rs:34:13
70 |
71 34 | ensure!(&db);
72 | --------^^^-
73 | | |
74 | | the trait `anyhow::__private::not::Bool` is not implemented for `&DerefBool`
75 | required by a bound introduced by this call
76 |
77 note: required by a bound in `anyhow::__private::not`
78 --> src/lib.rs
79 |
80 | pub fn not(cond: impl Bool) -> bool {
81 | ^^^^ required by this bound in `not`
82 help: consider dereferencing here
83 |
84 34 | ensure!(&*db);
85 | +
86
87 error[E0277]: the trait bound `NotBool: anyhow::__private::not::Bool` is not satisfied
88 --> tests/ui/ensure-nonbool.rs:37:13
89 |
90 37 | ensure!(nb);
91 | --------^^-
92 | | |
93 | | unsatisfied trait bound
94 | required by a bound introduced by this call
95 |
96 help: the trait `anyhow::__private::not::Bool` is not implemented for `NotBool`
97 --> tests/ui/ensure-nonbool.rs:8:1
98 |
99 8 | struct NotBool(bool);
100 | ^^^^^^^^^^^^^^
101 help: the following other types implement trait `anyhow::__private::not::Bool`
102 --> src/lib.rs
103 |
104 | impl Bool for bool {
105 | ^^^^^^^^^^^^^^^^^^ `bool`
106 ...
107 | impl Bool for &bool {
108 | ^^^^^^^^^^^^^^^^^^^ `&bool`
109 note: required by a bound in `anyhow::__private::not`
110 --> src/lib.rs
111 |
112 | pub fn not(cond: impl Bool) -> bool {
113 | ^^^^ required by this bound in `not`