]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/union-fields.stderr
Handle type aliases as well
[rust.git] / src / test / ui / union-fields.stderr
index 5c47ba388a45289e029040dc64489dd307d004b4..f3a2702d5aefa2266d5333e5069687b1578defe0 100644 (file)
@@ -22,5 +22,11 @@ error: field is never used: `a`
 23 | union NoDropLike { a: u8 } // should be reported as unused
    |                    ^^^^^
 
-error: aborting due to 3 previous errors
+error: field is never used: `c`
+  --> $DIR/union-fields.rs:28:5
+   |
+28 |     c: u8, // should be reported
+   |     ^^^^^
+
+error: aborting due to 4 previous errors