mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
20 lines
334 B
Rust
20 lines
334 B
Rust
//@ check-pass
|
|
|
|
#![feature(associated_type_defaults)]
|
|
|
|
use std::io::Read;
|
|
|
|
trait View {
|
|
type Deserializers: Deserializer<Item = Self::RequestParams>;
|
|
type RequestParams = DefaultRequestParams;
|
|
}
|
|
|
|
struct DefaultRequestParams;
|
|
|
|
trait Deserializer {
|
|
type Item;
|
|
fn deserialize(r: impl Read) -> Self::Item;
|
|
}
|
|
|
|
fn main() {}
|