|
1 | | -warning: the feature `effects` is incomplete and may not be safe to use and/or cause compiler crashes |
2 | | - --> $DIR/const-float-classify.rs:7:30 |
3 | | - | |
4 | | -LL | #![feature(const_trait_impl, effects)] |
5 | | - | ^^^^^^^ |
6 | | - | |
7 | | - = note: see issue #102090 <https://github.com/rust-lang/rust/issues/102090> for more information |
8 | | - = note: `#[warn(incomplete_features)]` on by default |
9 | | - |
10 | 1 | error: const `impl` for trait `PartialEq` which is not marked with `#[const_trait]` |
11 | | - --> $DIR/const-float-classify.rs:12:12 |
| 2 | + --> $DIR/const-float-classify.rs:13:12 |
12 | 3 | | |
13 | 4 | LL | impl const PartialEq<NonDet> for bool { |
14 | 5 | | ^^^^^^^^^^^^^^^^^ |
15 | 6 | | |
16 | 7 | = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` |
17 | 8 | = note: adding a non-const method body in the future would be a breaking change |
18 | 9 |
|
19 | | -error[E0207]: the const parameter `host` is not constrained by the impl trait, self type, or predicates |
20 | | - --> $DIR/const-float-classify.rs:12:6 |
21 | | - | |
22 | | -LL | impl const PartialEq<NonDet> for bool { |
23 | | - | ^^^^^ unconstrained const parameter |
24 | | - | |
25 | | - = note: expressions using a const parameter must map each value to a distinct output value |
26 | | - = note: proving the result of expressions other than the parameter are unique is not supported |
27 | | - |
28 | | -error[E0284]: type annotations needed |
29 | | - --> $DIR/const-float-classify.rs:21:35 |
30 | | - | |
31 | | -LL | const _: () = assert!($a == $b); |
32 | | - | ^^ cannot infer the value of the constant `_` |
33 | | -... |
34 | | -LL | / suite! { |
35 | | -LL | | [is_nan, is_infinite, is_finite, is_normal, is_sign_positive, is_sign_negative] |
36 | | -LL | | -0.0 / 0.0 => [ true, false, false, false, NonDet, NonDet] |
37 | | -LL | | 0.0 / 0.0 => [ true, false, false, false, NonDet, NonDet] |
38 | | -... | |
39 | | -LL | | -1.0 / 0.0 => [ false, true, false, false, false, true] |
40 | | -LL | | } |
41 | | - | |_- in this macro invocation |
42 | | - | |
43 | | -note: required for `bool` to implement `PartialEq<NonDet>` |
44 | | - --> $DIR/const-float-classify.rs:12:12 |
45 | | - | |
46 | | -LL | impl const PartialEq<NonDet> for bool { |
47 | | - | ----- ^^^^^^^^^^^^^^^^^ ^^^^ |
48 | | - | | |
49 | | - | unsatisfied trait bound introduced here |
50 | | - = note: this error originates in the macro `const_assert` which comes from the expansion of the macro `suite` (in Nightly builds, run with -Z macro-backtrace for more info) |
51 | | - |
52 | | -error[E0284]: type annotations needed |
53 | | - --> $DIR/const-float-classify.rs:21:35 |
54 | | - | |
55 | | -LL | const _: () = assert!($a == $b); |
56 | | - | ^^ cannot infer the value of the constant `_` |
57 | | -... |
58 | | -LL | / suite! { |
59 | | -LL | | [is_nan, is_infinite, is_finite, is_normal, is_sign_positive, is_sign_negative] |
60 | | -LL | | -0.0 / 0.0 => [ true, false, false, false, NonDet, NonDet] |
61 | | -LL | | 0.0 / 0.0 => [ true, false, false, false, NonDet, NonDet] |
62 | | -... | |
63 | | -LL | | -1.0 / 0.0 => [ false, true, false, false, false, true] |
64 | | -LL | | } |
65 | | - | |_- in this macro invocation |
66 | | - | |
67 | | -note: required for `bool` to implement `PartialEq<NonDet>` |
68 | | - --> $DIR/const-float-classify.rs:12:12 |
69 | | - | |
70 | | -LL | impl const PartialEq<NonDet> for bool { |
71 | | - | ----- ^^^^^^^^^^^^^^^^^ ^^^^ |
72 | | - | | |
73 | | - | unsatisfied trait bound introduced here |
74 | | - = note: this error originates in the macro `const_assert` which comes from the expansion of the macro `suite` (in Nightly builds, run with -Z macro-backtrace for more info) |
75 | | - |
76 | | -error[E0284]: type annotations needed |
77 | | - --> $DIR/const-float-classify.rs:21:35 |
78 | | - | |
79 | | -LL | const _: () = assert!($a == $b); |
80 | | - | ^^ cannot infer the value of the constant `_` |
81 | | -... |
82 | | -LL | / suite! { |
83 | | -LL | | [is_nan, is_infinite, is_finite, is_normal, is_sign_positive, is_sign_negative] |
84 | | -LL | | -0.0 / 0.0 => [ true, false, false, false, NonDet, NonDet] |
85 | | -LL | | 0.0 / 0.0 => [ true, false, false, false, NonDet, NonDet] |
86 | | -... | |
87 | | -LL | | -1.0 / 0.0 => [ false, true, false, false, false, true] |
88 | | -LL | | } |
89 | | - | |_- in this macro invocation |
90 | | - | |
91 | | -note: required for `bool` to implement `PartialEq<NonDet>` |
92 | | - --> $DIR/const-float-classify.rs:12:12 |
93 | | - | |
94 | | -LL | impl const PartialEq<NonDet> for bool { |
95 | | - | ----- ^^^^^^^^^^^^^^^^^ ^^^^ |
96 | | - | | |
97 | | - | unsatisfied trait bound introduced here |
98 | | - = note: this error originates in the macro `const_assert` which comes from the expansion of the macro `suite` (in Nightly builds, run with -Z macro-backtrace for more info) |
99 | | - |
100 | | -error[E0284]: type annotations needed |
101 | | - --> $DIR/const-float-classify.rs:21:35 |
102 | | - | |
103 | | -LL | const _: () = assert!($a == $b); |
104 | | - | ^^ cannot infer the value of the constant `_` |
105 | | -... |
106 | | -LL | / suite! { |
107 | | -LL | | [is_nan, is_infinite, is_finite, is_normal, is_sign_positive, is_sign_negative] |
108 | | -LL | | -0.0 / 0.0 => [ true, false, false, false, NonDet, NonDet] |
109 | | -LL | | 0.0 / 0.0 => [ true, false, false, false, NonDet, NonDet] |
110 | | -... | |
111 | | -LL | | -1.0 / 0.0 => [ false, true, false, false, false, true] |
112 | | -LL | | } |
113 | | - | |_- in this macro invocation |
114 | | - | |
115 | | -note: required for `bool` to implement `PartialEq<NonDet>` |
116 | | - --> $DIR/const-float-classify.rs:12:12 |
117 | | - | |
118 | | -LL | impl const PartialEq<NonDet> for bool { |
119 | | - | ----- ^^^^^^^^^^^^^^^^^ ^^^^ |
120 | | - | | |
121 | | - | unsatisfied trait bound introduced here |
122 | | - = note: this error originates in the macro `const_assert` which comes from the expansion of the macro `suite` (in Nightly builds, run with -Z macro-backtrace for more info) |
123 | | - |
124 | | -error[E0284]: type annotations needed |
125 | | - --> $DIR/const-float-classify.rs:21:35 |
126 | | - | |
127 | | -LL | const _: () = assert!($a == $b); |
128 | | - | ^^ cannot infer the value of the constant `_` |
129 | | -... |
130 | | -LL | / suite! { |
131 | | -LL | | [is_nan, is_infinite, is_finite, is_normal, is_sign_positive, is_sign_negative] |
132 | | -LL | | -0.0 / 0.0 => [ true, false, false, false, NonDet, NonDet] |
133 | | -LL | | 0.0 / 0.0 => [ true, false, false, false, NonDet, NonDet] |
134 | | -... | |
135 | | -LL | | -1.0 / 0.0 => [ false, true, false, false, false, true] |
136 | | -LL | | } |
137 | | - | |_- in this macro invocation |
138 | | - | |
139 | | -note: required for `bool` to implement `PartialEq<NonDet>` |
140 | | - --> $DIR/const-float-classify.rs:12:12 |
141 | | - | |
142 | | -LL | impl const PartialEq<NonDet> for bool { |
143 | | - | ----- ^^^^^^^^^^^^^^^^^ ^^^^ |
144 | | - | | |
145 | | - | unsatisfied trait bound introduced here |
146 | | - = note: this error originates in the macro `const_assert` which comes from the expansion of the macro `suite` (in Nightly builds, run with -Z macro-backtrace for more info) |
147 | | - |
148 | | -error[E0284]: type annotations needed |
149 | | - --> $DIR/const-float-classify.rs:21:35 |
150 | | - | |
151 | | -LL | const _: () = assert!($a == $b); |
152 | | - | ^^ cannot infer the value of the constant `_` |
153 | | -... |
154 | | -LL | / suite! { |
155 | | -LL | | [is_nan, is_infinite, is_finite, is_normal, is_sign_positive, is_sign_negative] |
156 | | -LL | | -0.0 / 0.0 => [ true, false, false, false, NonDet, NonDet] |
157 | | -LL | | 0.0 / 0.0 => [ true, false, false, false, NonDet, NonDet] |
158 | | -... | |
159 | | -LL | | -1.0 / 0.0 => [ false, true, false, false, false, true] |
160 | | -LL | | } |
161 | | - | |_- in this macro invocation |
162 | | - | |
163 | | -note: required for `bool` to implement `PartialEq<NonDet>` |
164 | | - --> $DIR/const-float-classify.rs:12:12 |
165 | | - | |
166 | | -LL | impl const PartialEq<NonDet> for bool { |
167 | | - | ----- ^^^^^^^^^^^^^^^^^ ^^^^ |
168 | | - | | |
169 | | - | unsatisfied trait bound introduced here |
170 | | - = note: this error originates in the macro `const_assert` which comes from the expansion of the macro `suite` (in Nightly builds, run with -Z macro-backtrace for more info) |
171 | | - |
172 | | -error[E0284]: type annotations needed |
173 | | - --> $DIR/const-float-classify.rs:21:35 |
174 | | - | |
175 | | -LL | const _: () = assert!($a == $b); |
176 | | - | ^^ cannot infer the value of the constant `_` |
177 | | -... |
178 | | -LL | / suite! { |
179 | | -LL | | [is_nan, is_infinite, is_finite, is_normal, is_sign_positive, is_sign_negative] |
180 | | -LL | | -0.0 / 0.0 => [ true, false, false, false, NonDet, NonDet] |
181 | | -LL | | 0.0 / 0.0 => [ true, false, false, false, NonDet, NonDet] |
182 | | -... | |
183 | | -LL | | -1.0 / 0.0 => [ false, true, false, false, false, true] |
184 | | -LL | | } |
185 | | - | |_- in this macro invocation |
186 | | - | |
187 | | -note: required for `bool` to implement `PartialEq<NonDet>` |
188 | | - --> $DIR/const-float-classify.rs:12:12 |
189 | | - | |
190 | | -LL | impl const PartialEq<NonDet> for bool { |
191 | | - | ----- ^^^^^^^^^^^^^^^^^ ^^^^ |
192 | | - | | |
193 | | - | unsatisfied trait bound introduced here |
194 | | - = note: this error originates in the macro `const_assert` which comes from the expansion of the macro `suite` (in Nightly builds, run with -Z macro-backtrace for more info) |
195 | | - |
196 | | -error[E0284]: type annotations needed |
197 | | - --> $DIR/const-float-classify.rs:21:35 |
198 | | - | |
199 | | -LL | const _: () = assert!($a == $b); |
200 | | - | ^^ cannot infer the value of the constant `_` |
201 | | -... |
202 | | -LL | / suite! { |
203 | | -LL | | [is_nan, is_infinite, is_finite, is_normal, is_sign_positive, is_sign_negative] |
204 | | -LL | | -0.0 / 0.0 => [ true, false, false, false, NonDet, NonDet] |
205 | | -LL | | 0.0 / 0.0 => [ true, false, false, false, NonDet, NonDet] |
206 | | -... | |
207 | | -LL | | -1.0 / 0.0 => [ false, true, false, false, false, true] |
208 | | -LL | | } |
209 | | - | |_- in this macro invocation |
210 | | - | |
211 | | -note: required for `bool` to implement `PartialEq<NonDet>` |
212 | | - --> $DIR/const-float-classify.rs:12:12 |
213 | | - | |
214 | | -LL | impl const PartialEq<NonDet> for bool { |
215 | | - | ----- ^^^^^^^^^^^^^^^^^ ^^^^ |
216 | | - | | |
217 | | - | unsatisfied trait bound introduced here |
218 | | - = note: this error originates in the macro `const_assert` which comes from the expansion of the macro `suite` (in Nightly builds, run with -Z macro-backtrace for more info) |
219 | | - |
220 | | -error: aborting due to 10 previous errors; 1 warning emitted |
| 10 | +error: aborting due to 1 previous error |
221 | 11 |
|
222 | | -Some errors have detailed explanations: E0207, E0284. |
223 | | -For more information about an error, try `rustc --explain E0207`. |
0 commit comments