summaryrefslogtreecommitdiffstats
path: root/tests/ui/union/union-lint-dead-code.mirunsafeck.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/union/union-lint-dead-code.mirunsafeck.stderr')
-rw-r--r--tests/ui/union/union-lint-dead-code.mirunsafeck.stderr17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/union/union-lint-dead-code.mirunsafeck.stderr b/tests/ui/union/union-lint-dead-code.mirunsafeck.stderr
new file mode 100644
index 000000000..6e21584c3
--- /dev/null
+++ b/tests/ui/union/union-lint-dead-code.mirunsafeck.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
+