summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0070.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/error-codes/E0070.rs')
-rw-r--r--src/test/ui/error-codes/E0070.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0070.rs b/src/test/ui/error-codes/E0070.rs
new file mode 100644
index 000000000..3aae0c9ff
--- /dev/null
+++ b/src/test/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() {
+}