diff options
| author | varkor <github@varkor.com> | 2018-11-29 21:00:11 +0000 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-11-29 21:00:11 +0000 |
| commit | 1cdf5df4517eabc4e4db86fc4b67a4fa984d3800 (patch) | |
| tree | 99afaff243aa166d3926d452b7ce71c22a5955fe /src | |
| parent | 46ef9f820c02f87137f963ca08007c4ca1b205a7 (diff) | |
| download | rust-1cdf5df4517eabc4e4db86fc4b67a4fa984d3800.tar.gz rust-1cdf5df4517eabc4e4db86fc4b67a4fa984d3800.zip | |
Fix error message after rebase
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/always-inhabited-union-ref.rs | 4 | ||||
| -rw-r--r-- | 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 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() { |
