Make async gen fn an error

This commit is contained in:
Eric Holk
2023-11-29 16:59:06 -08:00
parent 7c43784cb0
commit f29b36d03e
5 changed files with 34 additions and 0 deletions

View File

@@ -562,6 +562,13 @@ pub(crate) struct GenFn {
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(parse_async_gen_fn)]
pub(crate) struct AsyncGenFn {
#[primary_span]
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(parse_comma_after_base_struct)]
#[note]