Skip to content

Commit e40567b

Browse files
committed
add test for ICE fix
1 parent a7a8420 commit e40567b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Here we process outlive obligations involving
2+
// opaque types with bound vars in substs.
3+
// This was an ICE.
4+
//
5+
// check-pass
6+
#![feature(type_alias_impl_trait)]
7+
8+
type Ty<'a> = impl Sized + 'a;
9+
fn define<'a>() -> Ty<'a> {}
10+
11+
// Ty<'^0>: 'static
12+
fn test1(_: &'static fn(Ty<'_>)) {}
13+
14+
fn test2() {
15+
None::<&fn(Ty<'_>)>;
16+
}
17+
18+
fn main() { }

0 commit comments

Comments
 (0)