test: add missing source for #4943

This commit is contained in:
Eric 2021-08-30 20:59:45 +12:00 committed by Caleb Cartwright
parent c71c68c43f
commit d19f69cd71
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,9 @@
#![feature(generic_associated_types)]
impl SomeStruct {
fn process<T>(v: T) -> <Self as GAT>::R<T>
where Self: GAT<R<T> = T>
{
SomeStruct::do_something(v)
}
}

View file

@ -1,3 +1,5 @@
#![feature(generic_associated_types)]
impl SomeStruct {
fn process<T>(v: T) -> <Self as GAT>::R<T>
where