We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce16e91 commit acc3811Copy full SHA for acc3811
dsl_auto_type/src/auto_type/expression_type_inference.rs
@@ -82,6 +82,9 @@ impl TypeInferrer<'_> {
82
expr,
83
type_hint.filter(|h| !matches!(h, syn::Type::Infer(_))),
84
) {
85
+ (syn::Expr::Group(syn::ExprGroup { expr, .. }), type_hint) => {
86
+ return self.try_infer_expression_type(expr, type_hint)
87
+ }
88
(
89
syn::Expr::Tuple(syn::ExprTuple {
90
elems: expr_elems, ..
@@ -236,10 +239,10 @@ impl TypeInferrer<'_> {
236
239
))
237
240
}
238
241
},
- (_, None) => {
242
+ (e, None) => {
243
return Err(syn::Error::new(
244
expr.span(),
- "unsupported expression for auto_type",
245
+ format_args!("unsupported expression for auto_type: {e:?}"),
246
247
248
(_, Some(type_hint)) => type_hint.clone(),
0 commit comments