blob: 5d93ed0646caa45e47ddd71af9ae2911d6e6a114 [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()));
}