Skip to content

Commit e4fa906

Browse files
committed
Add a regression test for issue-70292
1 parent 83370ef commit e4fa906

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// check-pass
2+
3+
#![feature(associated_type_bounds)]
4+
5+
fn foo<F>(_: F)
6+
where
7+
F: for<'a> Trait<Output: 'a>,
8+
{
9+
}
10+
11+
trait Trait {
12+
type Output;
13+
}
14+
15+
impl<T> Trait for T {
16+
type Output = ();
17+
}
18+
19+
fn main() {
20+
foo(());
21+
}

0 commit comments

Comments
 (0)