Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
19
tests/ui/binding/match-enum-struct-1.rs
Normal file
19
tests/ui/binding/match-enum-struct-1.rs
Normal file
|
@ -0,0 +1,19 @@
|
|||
// run-pass
|
||||
#![allow(dead_code)]
|
||||
|
||||
enum E {
|
||||
Foo{f : isize},
|
||||
Bar
|
||||
}
|
||||
|
||||
pub fn main() {
|
||||
let e = E::Foo{f: 1};
|
||||
match e {
|
||||
E::Foo{..} => (),
|
||||
_ => panic!(),
|
||||
}
|
||||
match e {
|
||||
E::Foo{f: _f} => (),
|
||||
_ => panic!(),
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue