Add a regression test for issue-70292
This commit is contained in:
parent
83370efdb6
commit
e4fa906c44
1 changed files with 21 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue