]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-39161-bogus-error.rs
Rollup merge of #106949 - compiler-errors:is-poly, r=BoxyUwU
[rust.git] / tests / ui / consts / issue-39161-bogus-error.rs
1 // check-pass
2
3 pub struct X {
4     pub a: i32,
5     pub b: i32,
6 }
7
8 fn main() {
9     const DX: X = X { a: 0, b: 0 };
10     const _X1: X = X { a: 1, ..DX };
11     let _x2 = X { a: 1, b: 2, ..DX };
12     const _X3: X = X { a: 1, b: 2, ..DX };
13 }