mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
25 lines
302 B
Rust
25 lines
302 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
struct Pair { f: isize, g: isize }
|
|
|
|
pub fn main() {
|
|
|
|
let x = Pair {
|
|
f: 0,
|
|
g: 0,
|
|
};
|
|
|
|
let _y = Pair {
|
|
f: 1,
|
|
g: 1,
|
|
.. x
|
|
};
|
|
|
|
let _z = Pair {
|
|
f: 1,
|
|
.. x
|
|
};
|
|
|
|
}
|