blob: 02f4f5d42e74db97cd689d27755ba243886de98a [file] [log] [blame]
//@ revisions: cpass
#[derive(PartialEq, Eq)]
struct Id<'a> {
ns: &'a str,
}
fn visit_struct() {
let id = Id { ns: "random1" };
const FLAG: Id<'static> = Id { ns: "needs_to_be_the_same" };
match id {
FLAG => {}
_ => {}
}
}
fn visit_struct2() {
let id = Id { ns: "random2" };
const FLAG: Id<'static> = Id { ns: "needs_to_be_the_same" };
match id {
FLAG => {}
_ => {}
}
}
fn main() {}