summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/dont-try-removing-the-field.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/suggestions/dont-try-removing-the-field.stderr')
-rw-r--r--src/test/ui/suggestions/dont-try-removing-the-field.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/dont-try-removing-the-field.stderr b/src/test/ui/suggestions/dont-try-removing-the-field.stderr
new file mode 100644
index 000000000..263171a4a
--- /dev/null
+++ b/src/test/ui/suggestions/dont-try-removing-the-field.stderr
@@ -0,0 +1,10 @@
+warning: unused variable: `baz`
+ --> $DIR/dont-try-removing-the-field.rs:12:25
+ |
+LL | let Foo { foo, bar, baz } = x;
+ | ^^^ help: try ignoring the field: `baz: _`
+ |
+ = note: `#[warn(unused_variables)]` on by default
+
+warning: 1 warning emitted
+