mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
17 lines
276 B
Rust
17 lines
276 B
Rust
// Check that associated types print generic parameters and where clauses.
|
|
// See issue #67509.
|
|
|
|
// pretty-compare-only
|
|
|
|
trait X {
|
|
type Y<T>: Trait where Self: Sized;
|
|
}
|
|
|
|
impl X for () {
|
|
type Y<T> where Self: Sized = u32;
|
|
}
|
|
|
|
fn f<T: X<Y<()> = i32>>() {}
|
|
|
|
fn main() { }
|