summary refs log tree commit diff
path: root/src/test/ui/consts/const_let_assign.rs
blob: 343fcb4859b37299204648bcf47dd2c9a4c25426 (plain)
1
2
3
4
5
6
7
8
9
10
// build-pass (FIXME(62277): could be check-pass?)

struct S(i32);

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

fn main() {}