summaryrefslogtreecommitdiffstats
path: root/src/test/ui/union/union-lint-dead-code.thirunsafeck.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/union/union-lint-dead-code.thirunsafeck.stderr')
-rw-r--r--src/test/ui/union/union-lint-dead-code.thirunsafeck.stderr17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/union/union-lint-dead-code.thirunsafeck.stderr b/src/test/ui/union/union-lint-dead-code.thirunsafeck.stderr
new file mode 100644
index 000000000..6e21584c3
--- /dev/null
+++ b/src/test/ui/union/union-lint-dead-code.thirunsafeck.stderr
@@ -0,0 +1,17 @@
+error: field `b` is never read
+ --> $DIR/union-lint-dead-code.rs:8:5
+ |
+LL | union Foo {
+ | --- field in this union
+LL | x: usize,
+LL | b: bool,
+ | ^
+ |
+note: the lint level is defined here
+ --> $DIR/union-lint-dead-code.rs:4:9
+ |
+LL | #![deny(dead_code)]
+ | ^^^^^^^^^
+
+error: aborting due to previous error
+