about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/ui/always-inhabited-union-ref.rs4
-rw-r--r--src/test/ui/always-inhabited-union-ref.stderr4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/always-inhabited-union-ref.rs b/src/test/ui/always-inhabited-union-ref.rs
index b2f2818cb71..11eae2af9c9 100644
--- a/src/test/ui/always-inhabited-union-ref.rs
+++ b/src/test/ui/always-inhabited-union-ref.rs
@@ -21,11 +21,11 @@ fn uninhab_union() -> Foo {
 
 fn match_on_uninhab() {
     match uninhab_ref() {
-        //~^ ERROR non-exhaustive patterns: type &'static ! is non-empty
+        //~^ ERROR non-exhaustive patterns: type `&'static !` is non-empty
     }
 
     match uninhab_union() {
-        //~^ ERROR non-exhaustive patterns: type Foo is non-empty
+        //~^ ERROR non-exhaustive patterns: type `Foo` is non-empty
     }
 }
 
diff --git a/src/test/ui/always-inhabited-union-ref.stderr b/src/test/ui/always-inhabited-union-ref.stderr
index bd6179a0b56..212f5d7c525 100644
--- a/src/test/ui/always-inhabited-union-ref.stderr
+++ b/src/test/ui/always-inhabited-union-ref.stderr
@@ -1,4 +1,4 @@
-error[E0004]: non-exhaustive patterns: type &'static ! is non-empty
+error[E0004]: non-exhaustive patterns: type `&'static !` is non-empty
   --> $DIR/always-inhabited-union-ref.rs:23:11
    |
 LL |     match uninhab_ref() {
@@ -10,7 +10,7 @@ help: ensure that all possible cases are being handled, possibly by adding wildc
 LL |     match uninhab_ref() {
    |           ^^^^^^^^^^^^^
 
-error[E0004]: non-exhaustive patterns: type Foo is non-empty
+error[E0004]: non-exhaustive patterns: type `Foo` is non-empty
   --> $DIR/always-inhabited-union-ref.rs:27:11
    |
 LL |     match uninhab_union() {