Skip to content

Commit

Permalink
test: add missing source for #4943
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboy-bebug authored and calebcartwright committed Sep 3, 2021
1 parent c71c68c commit d19f69c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/source/issue_4943.rs
Original file line number Diff line number Diff line change
@@ -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)
}
}
2 changes: 2 additions & 0 deletions tests/target/issue_4943.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![feature(generic_associated_types)]

impl SomeStruct {
fn process<T>(v: T) -> <Self as GAT>::R<T>
where
Expand Down

0 comments on commit d19f69c

Please sign in to comment.