rust/tests/ui/consts/const_let_assign.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
99 B
Rust
Raw Normal View History

// check-pass
2018-11-19 10:19:14 +00:00
struct S(i32);
const A: () = {
let mut s = S(0);
s.0 = 1;
};
fn main() {}