summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const.rs')
-rw-r--r--src/test/ui/consts/const.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/consts/const.rs b/src/test/ui/consts/const.rs
new file mode 100644
index 000000000..71fbadfa8
--- /dev/null
+++ b/src/test/ui/consts/const.rs
@@ -0,0 +1,6 @@
+// run-pass
+#![allow(non_upper_case_globals)]
+
+static i: isize = 10;
+
+pub fn main() { println!("{}", i); }