mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +00:00
add regression test for issue #39161
This commit is contained in:
parent
0a8629bff6
commit
503abc77d2
13
src/test/ui/consts/issue-39161-bogus-error.rs
Normal file
13
src/test/ui/consts/issue-39161-bogus-error.rs
Normal file
@ -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 };
|
||||
}
|
Loading…
Reference in New Issue
Block a user