From 1cdf5df4517eabc4e4db86fc4b67a4fa984d3800 Mon Sep 17 00:00:00 2001 From: varkor Date: Thu, 29 Nov 2018 21:00:11 +0000 Subject: [PATCH] Fix error message after rebase --- src/test/ui/always-inhabited-union-ref.rs | 4 ++-- src/test/ui/always-inhabited-union-ref.stderr | 4 ++-- 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 b2f2818cb71b2..11eae2af9c95f 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 bd6179a0b56d8..212f5d7c525f5 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() {