]> git.lizzy.rs Git - rust.git/blob - tests/source/associated_type_bounds.rs
chore: backport 8157a3f0afe978d3e953420577f8344db7e905bf
[rust.git] / tests / source / associated_type_bounds.rs
1 // See #3657 - https://github.com/rust-lang/rustfmt/issues/3657
2
3 #![feature(associated_type_bounds)]
4
5 fn f<I: Iterator<Item: Clone>>() {}
6
7 fn g<I: Iterator<Item : Clone>>() {}
8
9 fn h<I: Iterator<Item :      Clone>>() {}
10
11 fn i<I: Iterator<Item:Clone>>() {}
12
13 fn j<I: Iterator<Item :  Clone+'a>>() {}