1
Fork 0

Add translatable diagnostic for cannot find in this scope

This commit is contained in:
Tom Martin 2023-06-18 12:15:17 +01:00
parent 50c971a0b7
commit 355a689542
No known key found for this signature in database
GPG key ID: 73A733F9629F5AC5
3 changed files with 23 additions and 4 deletions

View file

@ -613,3 +613,12 @@ pub(crate) struct ImportsCannotReferTo<'a> {
pub(crate) span: Span,
pub(crate) what: &'a str,
}
#[derive(Diagnostic)]
#[diag(resolve_cannot_find_ident_in_this_scope)]
pub(crate) struct CannotFindIdentInThisScope<'a> {
#[primary_span]
pub(crate) span: Span,
pub(crate) expected: &'a str,
pub(crate) ident: Ident,
}