summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0013.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/error-codes/E0013.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0013.rs b/tests/ui/error-codes/E0013.rs
new file mode 100644
index 000000000..9b3982a78
--- /dev/null
+++ b/tests/ui/error-codes/E0013.rs
@@ -0,0 +1,4 @@
+static X: i32 = 42;
+const Y: i32 = X; //~ ERROR constants cannot refer to statics [E0013]
+
+fn main() {}