Add translatable diagnostic for cannot find in this scope
This commit is contained in:
parent
50c971a0b7
commit
355a689542
3 changed files with 23 additions and 4 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue