test: add missing source for #4943
This commit is contained in:
parent
c71c68c43f
commit
d19f69cd71
2 changed files with 11 additions and 0 deletions
9
tests/source/issue_4943.rs
Normal file
9
tests/source/issue_4943.rs
Normal 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)
|
||||
}
|
||||
}
|
|
@ -1,3 +1,5 @@
|
|||
#![feature(generic_associated_types)]
|
||||
|
||||
impl SomeStruct {
|
||||
fn process<T>(v: T) -> <Self as GAT>::R<T>
|
||||
where
|
||||
|
|
Loading…
Reference in a new issue