diff options
Diffstat (limited to 'tests/ui/error-codes/E0594.rs')
-rw-r--r-- | tests/ui/error-codes/E0594.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0594.rs b/tests/ui/error-codes/E0594.rs new file mode 100644 index 000000000..8b0cae7e1 --- /dev/null +++ b/tests/ui/error-codes/E0594.rs @@ -0,0 +1,5 @@ +static NUM: i32 = 18; + +fn main() { + NUM = 20; //~ ERROR cannot assign to immutable static item `NUM` +} |