mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Update E0404 to new format.
This commit is contained in:
parent
a6ffa42f7d
commit
19e140b946
@ -219,7 +219,13 @@ fn resolve_struct_error<'b, 'a: 'b, 'c>(resolver: &'b Resolver<'a>,
|
||||
name)
|
||||
}
|
||||
ResolutionError::IsNotATrait(name) => {
|
||||
struct_span_err!(resolver.session, span, E0404, "`{}` is not a trait", name)
|
||||
let mut err = struct_span_err!(resolver.session,
|
||||
span,
|
||||
E0404,
|
||||
"`{}` is not a trait",
|
||||
name);
|
||||
err.span_label(span, &format!("not a trait"));
|
||||
err
|
||||
}
|
||||
ResolutionError::UndeclaredTraitName(name, candidates) => {
|
||||
let mut err = struct_span_err!(resolver.session,
|
||||
|
@ -2,7 +2,7 @@ error[E0404]: `Bar` is not a trait
|
||||
--> $DIR/two_files.rs:16:6
|
||||
|
|
||||
16 | impl Bar for Baz { }
|
||||
| ^^^
|
||||
| ^^^ not a trait
|
||||
|
|
||||
= note: type aliases cannot be used for traits
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user