Add a regression test for issue-70292

This commit is contained in:
Yuki Okushi 2020-10-09 18:32:53 +09:00
parent 83370efdb6
commit e4fa906c44

View File

@ -0,0 +1,21 @@
// check-pass
#![feature(associated_type_bounds)]
fn foo<F>(_: F)
where
F: for<'a> Trait<Output: 'a>,
{
}
trait Trait {
type Output;
}
impl<T> Trait for T {
type Output = ();
}
fn main() {
foo(());
}