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