1
Fork 0

Error on incorrect item kind in async bound

This commit is contained in:
Michael Goulet 2024-01-26 17:33:42 +00:00
parent 54db272cc9
commit 3913c9a0ca
7 changed files with 88 additions and 9 deletions

View file

@ -395,3 +395,18 @@ pub(crate) struct GenericParamDefaultInBinder {
#[primary_span]
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(ast_lowering_async_bound_not_on_trait)]
pub(crate) struct AsyncBoundNotOnTrait {
#[primary_span]
pub span: Span,
pub descr: &'static str,
}
#[derive(Diagnostic)]
#[diag(ast_lowering_async_bound_only_for_fn_traits)]
pub(crate) struct AsyncBoundOnlyForFnTraits {
#[primary_span]
pub span: Span,
}