]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0070.rs
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / error-codes / E0070.rs
1 const SOME_CONST : i32 = 12;
2
3 fn some_other_func() {}
4
5 fn some_function() {
6     SOME_CONST = 14; //~ ERROR E0070
7     1 = 3; //~ ERROR E0070
8     some_other_func() = 4; //~ ERROR E0070
9 }
10
11 fn main() {
12 }