Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/test/ui/fn/implied-bounds-unnorm-associated-type-2.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// build-pass

trait Trait {
type Type;
}

impl<T> Trait for T {
type Type = ();
}

fn f<'a, 'b>(_: <&'a &'b () as Trait>::Type)
where
'a: 'a,
'b: 'b,
{
}

fn g<'a, 'b>() {
f::<'a, 'b>(());
}

fn main() {}