Add a regression test for issue-70292
This commit is contained in:
parent
83370efdb6
commit
e4fa906c44
21
src/test/ui/associated-type-bounds/issue-70292.rs
Normal file
21
src/test/ui/associated-type-bounds/issue-70292.rs
Normal 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(());
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user