summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0070.rs
blob: ab956d81098388dcae73cfb409fac6f2a5f099b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
                           //~^ ERROR E0308
}

fn main() {
}