feat(syntax): RTN in bounds

Limited syntactic support for experimental return type notations.
https://github.com/rust-lang/rust/issues/109417
This commit is contained in:
tamasfe 2023-04-01 15:26:03 +02:00
parent ffb04ae32d
commit 0b9c0c5088
No known key found for this signature in database
GPG key ID: 2373047D27CA4E47
8 changed files with 103 additions and 2 deletions

View file

@ -218,6 +218,9 @@ pub(super) fn lower_generic_args(
let arg = ConstRefOrPath::from_expr_opt(arg.expr());
args.push(GenericArg::Const(arg))
}
ast::GenericArg::ReturnTypeArg(_) => {
// TODO: return type notation is experimental, we don't do anything with it yet.
}
}
}