Skip to content

Commit

Permalink
add regression test for issue rust-lang#39161
Browse files Browse the repository at this point in the history
  • Loading branch information
yerke committed Jun 16, 2021
1 parent 0a8629b commit 503abc7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/test/ui/consts/issue-39161-bogus-error.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// 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 };
}

0 comments on commit 503abc7

Please sign in to comment.