Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 405 Bytes
// build-pass (FIXME(62277): could be check-pass?)
mod my_mod {
#[derive(Clone, Copy, Eq, PartialEq, PartialOrd, Ord, Hash)]
pub struct Name<'a> {
source: &'a str,
}
pub const JSON: Name = Name { source: "JSON" };
}
pub fn crash() -> bool {
match (my_mod::JSON, None) {
(_, Some(my_mod::JSON)) => true,
(my_mod::JSON, None) => true,
_ => false,
}
}
fn main() {}
You can’t perform that action at this time.