Give a better error message on async use in edition 2015
This commit is contained in:
parent
2f48fcec63
commit
4e6407ab94
5 changed files with 38 additions and 8 deletions
|
@ -1688,6 +1688,13 @@ pub(crate) struct AsyncMoveBlockIn2015 {
|
|||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(parse_async_use_block_in_2015)]
|
||||
pub(crate) struct AsyncUseBlockIn2015 {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(parse_async_bound_modifier_in_2015)]
|
||||
pub(crate) struct AsyncBoundModifierIn2015 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue