mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 11:53:44 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
14 lines
346 B
Rust
14 lines
346 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
|
|
struct Foo { foo: bool, bar: Option<isize>, baz: isize }
|
|
|
|
pub fn main() {
|
|
match (Foo{foo: true, bar: Some(10), baz: 20}) {
|
|
Foo{foo: true, bar: Some(_), ..} => {}
|
|
Foo{foo: false, bar: None, ..} => {}
|
|
Foo{foo: true, bar: None, ..} => {}
|
|
Foo{foo: false, bar: Some(_), ..} => {}
|
|
}
|
|
}
|