rust/tests/ui/consts/issue-39161-bogus-error.rs

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

14 lines
233 B
Rust
Raw Normal View History

2021-06-16 16:05:36 -05:00
// check-pass
pub struct X {
pub a: i32,
pub b: i32,
}
fn main() {
const DX: X = X { a: 0, b: 0 };
const _X1: X = X { a: 1, ..DX };
let _x2 = X { a: 1, b: 2, ..DX };
const _X3: X = X { a: 1, b: 2, ..DX };
}