rust/tests/pretty/gat-bounds.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
277 B
Rust
Raw Normal View History

2020-02-07 02:17:38 +00:00
// 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>>() {}
2020-02-07 02:17:38 +00:00
fn main() { }