diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2025-02-21 17:24:46 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2025-03-06 17:58:34 -0300 |
| commit | 4e6407ab947314480f3b978a20f9b0685ad59f78 (patch) | |
| tree | 92988cc1cc2cd86f3d7c038024f47870b13b9f7b /compiler/rustc_parse/src/errors.rs | |
| parent | 2f48fcec63245de13d3017c392ee792ea7f44007 (diff) | |
| download | rust-4e6407ab947314480f3b978a20f9b0685ad59f78.tar.gz rust-4e6407ab947314480f3b978a20f9b0685ad59f78.zip | |
Give a better error message on async use in edition 2015
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index f75fc8f9830..e090d9cf760 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -1689,6 +1689,13 @@ pub(crate) struct AsyncMoveBlockIn2015 { } #[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 { #[primary_span] |
