10 lines
184 B
Rust
10 lines
184 B
Rust
#![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)
|
|
}
|
|
}
|