about summary refs log tree commit diff
path: root/tests/ui/error-codes/E0070.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0070.rs')
-rw-r--r--tests/ui/error-codes/E0070.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0070.rs b/tests/ui/error-codes/E0070.rs
new file mode 100644
index 00000000000..3aae0c9ff6e
--- /dev/null
+++ b/tests/ui/error-codes/E0070.rs
@@ -0,0 +1,12 @@
+const SOME_CONST : i32 = 12;
+
+fn some_other_func() {}
+
+fn some_function() {
+    SOME_CONST = 14; //~ ERROR E0070
+    1 = 3; //~ ERROR E0070
+    some_other_func() = 4; //~ ERROR E0070
+}
+
+fn main() {
+}