blob: d8a55dd34bcf0bbc8adcda0e8e6a5a4efdfccac4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#![feature(associated_type_defaults)]
pub trait Foo<T: Default + ToString> {
type Out: Default + ToString = T;
}
impl Foo<u32> for () {
}
impl Foo<u64> for () {
type Out = bool;
}
|