Add test for ICE #6153

This commit is contained in:
flip1995 2020-10-10 15:03:49 +02:00
parent cf81975d77
commit 52e650ae88
No known key found for this signature in database
GPG Key ID: 2CEFCDB27ED0BE79

View File

@ -0,0 +1,9 @@
pub struct S<'a, 'e>(&'a str, &'e str);
pub type T<'a, 'e> = std::collections::HashMap<S<'a, 'e>, ()>;
impl<'e, 'a: 'e> S<'a, 'e> {
pub fn foo(_a: &str, _b: &str, _map: &T) {}
}
fn main() {}