1
Fork 0

Migrate trait_fn_async

This commit is contained in:
finalchild 2022-08-18 16:49:52 +09:00
parent 88afae5d1a
commit e3d4c4039a
3 changed files with 18 additions and 10 deletions

View file

@ -71,3 +71,14 @@ pub enum InvalidVisibilityNote {
#[note(ast_passes::individual_foreign_items)]
IndividualForeignItems,
}
#[derive(SessionDiagnostic)]
#[error(ast_passes::trait_fn_async, code = "E0706")]
#[note]
#[note(ast_passes::note2)]
pub struct TraitFnAsync {
#[primary_span]
pub fn_span: Span,
#[label]
pub span: Span,
}