about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/transform
diff options
context:
space:
mode:
authorGimgim <93856041+gimbles@users.noreply.github.com>2022-10-15 15:28:29 +0530
committerGitHub <noreply@github.com>2022-10-15 15:28:29 +0530
commit49f34bd8147a84229cc6641f2d386f09ee12c7e5 (patch)
tree70125ca6c78b7c867eecdae108f72656cb326b09 /compiler/rustc_const_eval/src/transform
parent46244f335b5262ef9bdc34cc564b4dea221948f6 (diff)
downloadrust-49f34bd8147a84229cc6641f2d386f09ee12c7e5.tar.gz
rust-49f34bd8147a84229cc6641f2d386f09ee12c7e5.zip
Surround type with backticks
Diffstat (limited to 'compiler/rustc_const_eval/src/transform')
-rw-r--r--compiler/rustc_const_eval/src/transform/validate.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/validate.rs b/compiler/rustc_const_eval/src/transform/validate.rs
index 87b7c55bf7f..fbb129f9724 100644
--- a/compiler/rustc_const_eval/src/transform/validate.rs
+++ b/compiler/rustc_const_eval/src/transform/validate.rs
@@ -284,7 +284,7 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> {
                         this.fail(
                         location,
                         format!(
-                            "Field projection `{:?}.{:?}` specified type `{:?}`, but actual type is {:?}",
+                            "Field projection `{:?}.{:?}` specified type `{:?}`, but actual type is `{:?}`",
                             parent, f, ty, f_ty
                         )
                     )