blob: ab7d10d9f837d716addeab828090898e5526e0bc [file] [log] [blame]
// check-pass
#![feature(move_ref_pattern)]
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 } => {}
}
}