blob: 64b6e8f2dcaa78e56daa2366248371ab34173327 [file] [log] [blame] [edit]
//@ check-pass
enum E {
Foo(String, String, String),
}
struct Bar {
a: String,
b: String,
}
fn main() {
let bar = Bar { a: "1".to_string(), b: "2".to_string() };
match E::Foo("".into(), "".into(), "".into()) {
E::Foo(a, b, ref c) => {}
}
match bar {
Bar { a, ref b } => {}
}
}