rust/tests/source/issue_4943.rs

10 lines
184 B
Rust
Raw Normal View History

2021-08-30 03:59:45 -05:00
#![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)
}
}