You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0433]: failed to resolve: use of undeclared type `MyFloat`
143
149
--> $DIR/autodiff_illegal.rs:130:1
144
150
|
@@ -151,6 +157,20 @@ error[E0433]: failed to resolve: use of undeclared type `F64Trans`
151
157
LL | #[autodiff(df18, Reverse, Active, Active)]
152
158
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `F64Trans`
153
159
160
+
error[E0308]: mismatched types
161
+
--> $DIR/autodiff_illegal.rs:181:25
162
+
|
163
+
LL | #[autodiff(df, Forward, Dual, Dual)]
164
+
| -- implicitly returns `()` as its body has no tail or `return` expression
165
+
LL | fn f(x: f32, y: f32) -> f32 {
166
+
| ^^^ expected `f32`, found `()`
167
+
|
168
+
note: consider returning one of these bindings
169
+
--> $DIR/autodiff_illegal.rs:181:6
170
+
|
171
+
LL | fn f(x: f32, y: f32) -> f32 {
172
+
| ^ ^
173
+
154
174
error[E0599]: the function or associated item `default` exists for tuple `(DoesNotImplDefault, DoesNotImplDefault)`, but its trait bounds were not satisfied
155
175
--> $DIR/autodiff_illegal.rs:181:1
156
176
|
@@ -168,7 +188,7 @@ LL + #[derive(Default)]
168
188
LL | struct DoesNotImplDefault;
169
189
|
170
190
171
-
error: aborting due to 23 previous errors
191
+
error: aborting due to 22 previous errors
172
192
173
-
Some errors have detailed explanations: E0428, E0433, E0599, E0658.
193
+
Some errors have detailed explanations: E0428, E0433, E0658.
174
194
For more information about an error, try `rustc --explain E0428`.
0 commit comments