summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const_let_assign.rs
blob: b83acfb73cfc190c6dad58b2416ec43cb7f7863b (plain)
1
2
3
4
5
6
7
8
9
10
// check-pass

struct S(i32);

const A: () = {
    let mut s = S(0);
    s.0 = 1;
};

fn main() {}