]> git.proxmox.com Git - rustc.git/blob - src/test/incremental/issue-101518.rs
Update unsuspicious file list
[rustc.git] / src / test / incremental / issue-101518.rs
1 // revisions: cfail1
2 // should-ice
3 // error-pattern: forcing query
4 // known-bug: #101518
5
6 #[derive(PartialEq, Eq)]
7 struct Id<'a> {
8 ns: &'a str,
9 }
10 fn visit_struct() {
11 let id = Id { ns: "random1" };
12 const FLAG: Id<'static> = Id {
13 ns: "needs_to_be_the_same",
14 };
15 match id {
16 FLAG => {}
17 _ => {}
18 }
19 }
20 fn visit_struct2() {
21 let id = Id { ns: "random2" };
22 const FLAG: Id<'static> = Id {
23 ns: "needs_to_be_the_same",
24 };
25 match id {
26 FLAG => {}
27 _ => {}
28 }
29 }
30
31 fn main() {}