]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const_let_assign.rs
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const_let_assign.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2
3 struct S(i32);
4
5 const A: () = {
6     let mut s = S(0);
7     s.0 = 1;
8 };
9
10 fn main() {}