Skip to content

Commit fe8ad14

Browse files
committed
Add backticks around trait name in conflicting implementations error message
1 parent 77adec9 commit fe8ad14

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc/middle/typeck/coherence.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ impl CoherenceChecker {
397397
let session = self.crate_context.tcx.sess;
398398
session.span_err(
399399
self.span_of_impl(implementation_b),
400-
fmt!("conflicting implementations for trait %s",
400+
fmt!("conflicting implementations for trait `%s`",
401401
ty::item_path_str(self.crate_context.tcx,
402402
trait_def_id)));
403403
session.span_note(self.span_of_impl(implementation_a),

src/test/compile-fail/conflicting-implementations.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern: conflicting implementations for trait Foo
11+
// error-pattern: conflicting implementations for trait `Foo`
1212
trait Foo {
1313
}
1414

0 commit comments

Comments
 (0)