mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-12 06:53:05 +00:00
Add backticks around trait name in conflicting implementations error message
This commit is contained in:
parent
77adec9c9b
commit
fe8ad14c87
@ -397,7 +397,7 @@ impl CoherenceChecker {
|
||||
let session = self.crate_context.tcx.sess;
|
||||
session.span_err(
|
||||
self.span_of_impl(implementation_b),
|
||||
fmt!("conflicting implementations for trait %s",
|
||||
fmt!("conflicting implementations for trait `%s`",
|
||||
ty::item_path_str(self.crate_context.tcx,
|
||||
trait_def_id)));
|
||||
session.span_note(self.span_of_impl(implementation_a),
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// error-pattern: conflicting implementations for trait Foo
|
||||
// error-pattern: conflicting implementations for trait `Foo`
|
||||
trait Foo {
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user