]> git.lizzy.rs Git - rust.git/blob - src/test/pretty/gat-bounds.rs
Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29
[rust.git] / src / test / pretty / gat-bounds.rs
1 // Check that associated types print generic parameters and where clauses.
2 // See issue #67509.
3
4 // pretty-compare-only
5
6 #![feature(generic_associated_types)]
7
8 trait X {
9     type Y<T>: Trait where Self: Sized;
10 }
11
12 impl X for () {
13     type Y<T> where Self: Sized = u32;
14 }
15
16 fn f<T: X<Y<()> = i32>>() {}
17
18 fn main() { }