blob: 8b6aa82ea8c0c4c00735c3d2477184ef5840ec0c [file] [log] [blame]
//@ run-pass
const X: &'static str = "12345";
fn test(s: String) -> bool {
match &*s {
X => true,
_ => false
}
}
fn main() {
assert!(test("12345".to_string()));
}