Skip to content

Commit

Permalink
Fix error message after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Nov 29, 2018
1 parent 46ef9f8 commit 1cdf5df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/test/ui/always-inhabited-union-ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/always-inhabited-union-ref.stderr
Original file line number Diff line number Diff line change
@@ -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() {
Expand All @@ -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() {
Expand Down

0 comments on commit 1cdf5df

Please sign in to comment.