rust/src/test/ui/consts/const_let_assign.rs
2019-07-03 06:30:28 +09:00

11 lines
136 B
Rust

// build-pass (FIXME(62277): could be check-pass?)
struct S(i32);
const A: () = {
let mut s = S(0);
s.0 = 1;
};
fn main() {}