]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-46964.rs
Enable full revision in const generics ui tests
[rust.git] / src / test / ui / issues / issue-46964.rs
1 // check-pass
2 mod my_mod {
3     #[derive(Clone, Copy, Eq, PartialEq, PartialOrd, Ord, Hash)]
4     pub struct Name<'a> {
5         source: &'a str,
6     }
7
8     pub const JSON: Name = Name { source: "JSON" };
9 }
10
11 pub fn crash() -> bool {
12   match (my_mod::JSON, None) {
13     (_, Some(my_mod::JSON)) => true,
14     (my_mod::JSON, None) => true,
15     _ => false,
16   }
17 }
18
19 fn main() {}