]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const_let_assign.rs
Rollup merge of #106962 - compiler-errors:use-sugg-span, r=oli-obk
[rust.git] / tests / ui / consts / const_let_assign.rs
1 // 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() {}