2020-02-06 20:17:38 -06:00
|
|
|
// Check that associated types print generic parameters and where clauses.
|
|
|
|
// See issue #67509.
|
|
|
|
|
2024-02-22 06:10:29 -06:00
|
|
|
//@ pretty-compare-only
|
2020-02-06 20:17:38 -06:00
|
|
|
|
|
|
|
trait X {
|
|
|
|
type Y<T>: Trait where Self: Sized;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl X for () {
|
|
|
|
type Y<T> where Self: Sized = u32;
|
|
|
|
}
|
|
|
|
|
2021-02-11 14:46:58 -06:00
|
|
|
fn f<T: X<Y<()> = i32>>() {}
|
|
|
|
|
2020-02-06 20:17:38 -06:00
|
|
|
fn main() { }
|