mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 04:27:38 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
14 lines
179 B
Rust
14 lines
179 B
Rust
//@ run-pass
|
|
|
|
mod m {
|
|
pub struct S {
|
|
pub x: isize,
|
|
pub y: isize
|
|
}
|
|
}
|
|
|
|
pub fn main() {
|
|
let x = m::S { x: 1, y: 2 };
|
|
let m::S { x: _a, y: _b } = x;
|
|
}
|