summaryrefslogtreecommitdiffstats
path: root/src/test/ui/new-style-constants.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/new-style-constants.rs')
-rw-r--r--src/test/ui/new-style-constants.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/new-style-constants.rs b/src/test/ui/new-style-constants.rs
new file mode 100644
index 000000000..82ed7b557
--- /dev/null
+++ b/src/test/ui/new-style-constants.rs
@@ -0,0 +1,7 @@
+// run-pass
+
+static FOO: isize = 3;
+
+pub fn main() {
+ println!("{}", FOO);
+}