about summary refs log tree commit diff
path: root/src/test/debug-info/struct-style-enum.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/debug-info/struct-style-enum.rs')
-rw-r--r--src/test/debug-info/struct-style-enum.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/debug-info/struct-style-enum.rs b/src/test/debug-info/struct-style-enum.rs
index 61bbd2e215f..30be3b84563 100644
--- a/src/test/debug-info/struct-style-enum.rs
+++ b/src/test/debug-info/struct-style-enum.rs
@@ -28,6 +28,8 @@
 // debugger:print univariant
 // check:$4 = {a = -1}
 
+#[allow(unused_variable)];
+
 // The first element is to ensure proper alignment, irrespective of the machines word size. Since
 // the size of the discriminant value is machine dependent, this has be taken into account when
 // datatype layout should be predictable as in this case.
@@ -70,4 +72,4 @@ fn main() {
     zzz();
 }
 
-fn zzz() {()}
\ No newline at end of file
+fn zzz() {()}