提交 fe8ad14c 编写于 作者: D David Halperin

Add backticks around trait name in conflicting implementations error message

上级 77adec9c
......@@ -397,7 +397,7 @@ pub fn check_implementation_coherence_of(&self, trait_def_id: def_id) {
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 {
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册