Skip to content

Commit

Permalink
Add test for ICE rust-lang#6153
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Oct 10, 2020
1 parent cf81975 commit 52e650a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/ui/crashes/ice-6153.rs
Original file line number Diff line number Diff line change
@@ -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() {}

0 comments on commit 52e650a

Please sign in to comment.