about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeSeulArtichaut <leseulartichaut@gmail.com>2019-12-12 20:55:00 +0100
committerLeSeulArtichaut <leseulartichaut@gmail.com>2019-12-12 20:56:14 +0100
commite4abcfbd34f759c33da6f6d7e37235c15ede07c2 (patch)
treee9502e995a83172ac7c504352366135c1a6b0919
parenteac6fac10b572d4912d0bcd455c12909f63914b7 (diff)
downloadrust-e4abcfbd34f759c33da6f6d7e37235c15ede07c2.tar.gz
rust-e4abcfbd34f759c33da6f6d7e37235c15ede07c2.zip
Added missing backticks
-rw-r--r--src/librustc_typeck/check/op.rs4
-rw-r--r--src/test/ui/issues/issue-28837.stderr4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_typeck/check/op.rs b/src/librustc_typeck/check/op.rs
index 5fa6bdf2ee3..4f20a91e4b0 100644
--- a/src/librustc_typeck/check/op.rs
+++ b/src/librustc_typeck/check/op.rs
@@ -368,11 +368,11 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
                                     Some("std::ops::BitOr"))
                                 },
                                 hir::BinOpKind::Shl    => {
-                                    (format!("no implementation for `{} << {}", lhs_ty, rhs_ty),
+                                    (format!("no implementation for `{} << {}`", lhs_ty, rhs_ty),
                                     Some("std::ops::Shl"))
                                 },
                                 hir::BinOpKind::Shr    => {
-                                    (format!("no implementation for `{} >> {}", lhs_ty, rhs_ty),
+                                    (format!("no implementation for `{} >> {}`", lhs_ty, rhs_ty),
                                     Some("std::ops::Shr"))
                                 },
                                 hir::BinOpKind::Eq |
diff --git a/src/test/ui/issues/issue-28837.stderr b/src/test/ui/issues/issue-28837.stderr
index 92470f89805..2ef571b576f 100644
--- a/src/test/ui/issues/issue-28837.stderr
+++ b/src/test/ui/issues/issue-28837.stderr
@@ -68,7 +68,7 @@ LL |     a | a;
    |
    = note: an implementation of `std::ops::BitOr` might be missing for `A`
 
-error[E0369]: no implementation for `A << A
+error[E0369]: no implementation for `A << A`
   --> $DIR/issue-28837.rs:20:7
    |
 LL |     a << a;
@@ -78,7 +78,7 @@ LL |     a << a;
    |
    = note: an implementation of `std::ops::Shl` might be missing for `A`
 
-error[E0369]: no implementation for `A >> A
+error[E0369]: no implementation for `A >> A`
   --> $DIR/issue-28837.rs:22:7
    |
 LL |     a >> a;