Skip to content

Commit 1cdf5df

Browse files
committed
Fix error message after rebase
1 parent 46ef9f8 commit 1cdf5df

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/ui/always-inhabited-union-ref.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ fn uninhab_union() -> Foo {
2121

2222
fn match_on_uninhab() {
2323
match uninhab_ref() {
24-
//~^ ERROR non-exhaustive patterns: type &'static ! is non-empty
24+
//~^ ERROR non-exhaustive patterns: type `&'static !` is non-empty
2525
}
2626

2727
match uninhab_union() {
28-
//~^ ERROR non-exhaustive patterns: type Foo is non-empty
28+
//~^ ERROR non-exhaustive patterns: type `Foo` is non-empty
2929
}
3030
}
3131

src/test/ui/always-inhabited-union-ref.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0004]: non-exhaustive patterns: type &'static ! is non-empty
1+
error[E0004]: non-exhaustive patterns: type `&'static !` is non-empty
22
--> $DIR/always-inhabited-union-ref.rs:23:11
33
|
44
LL | match uninhab_ref() {
@@ -10,7 +10,7 @@ help: ensure that all possible cases are being handled, possibly by adding wildc
1010
LL | match uninhab_ref() {
1111
| ^^^^^^^^^^^^^
1212

13-
error[E0004]: non-exhaustive patterns: type Foo is non-empty
13+
error[E0004]: non-exhaustive patterns: type `Foo` is non-empty
1414
--> $DIR/always-inhabited-union-ref.rs:27:11
1515
|
1616
LL | match uninhab_union() {

0 commit comments

Comments
 (0)