Report duplicate definitions in trait impls during resolution.
This commit is contained in:
parent
8796e7a9cf
commit
152cd63226
11 changed files with 142 additions and 30 deletions
|
@ -236,6 +236,8 @@ enum ResolutionError<'a> {
|
|||
trait_item_span: Span,
|
||||
code: rustc_errors::DiagnosticId,
|
||||
},
|
||||
/// Error E0201: multiple impl items for the same trait item.
|
||||
TraitImplDuplicate { name: Symbol, trait_item_span: Span, old_span: Span },
|
||||
/// Inline asm `sym` operand must refer to a `fn` or `static`.
|
||||
InvalidAsmSym,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue