rust/tests/ui/consts/const_let_assign.rs
2023-01-11 09:32:08 +00:00

11 lines
99 B
Rust

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