Skip to content

Commit d9e42ae

Browse files
tests: add tests for assoscaited_type_bounds fix
1 parent 731f7d5 commit d9e42ae

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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>>() {}
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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>>() {}

0 commit comments

Comments
 (0)