about summary refs log tree commit diff
path: root/src/test/debug-info/struct-style-enum.rs
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2013-08-17 08:37:42 -0700
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2013-08-17 08:42:35 -0700
commitad5c67685332dc0e45d459b45749e76c93270988 (patch)
tree6438b5458ada542b1b3d17271285f7f9c0402cb9 /src/test/debug-info/struct-style-enum.rs
parente20d46056dc5891696faa8ebcccd2279b6c445d9 (diff)
downloadrust-ad5c67685332dc0e45d459b45749e76c93270988.tar.gz
rust-ad5c67685332dc0e45d459b45749e76c93270988.zip
Fix warnings it tests
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() {()}