]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/pattern/usefulness/always-inhabited-union-ref.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / pattern / usefulness / always-inhabited-union-ref.stderr
index 792ab6f59a43966382f1b7c3d73610f2b19e2ddf..1b1096c977ad4e915641319ca048c79a9bb57a27 100644 (file)
@@ -9,8 +9,13 @@ LL |     match uninhab_ref() {
 error[E0004]: non-exhaustive patterns: type `Foo` is non-empty
   --> $DIR/always-inhabited-union-ref.rs:27:11
    |
-LL |     match uninhab_union() {
-   |           ^^^^^^^^^^^^^^^
+LL | / pub union Foo {
+LL | |     foo: !,
+LL | | }
+   | |_- `Foo` defined here
+...
+LL |       match uninhab_union() {
+   |             ^^^^^^^^^^^^^^^
    |
    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms