Skip to content

Commit 52e650a

Browse files
committed
Add test for ICE #6153
1 parent cf81975 commit 52e650a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/ui/crashes/ice-6153.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
pub struct S<'a, 'e>(&'a str, &'e str);
2+
3+
pub type T<'a, 'e> = std::collections::HashMap<S<'a, 'e>, ()>;
4+
5+
impl<'e, 'a: 'e> S<'a, 'e> {
6+
pub fn foo(_a: &str, _b: &str, _map: &T) {}
7+
}
8+
9+
fn main() {}

0 commit comments

Comments
 (0)