tests: add tests for assoscaited_type_bounds fix

This commit is contained in:
calebcartwright 2019-06-29 10:11:20 -05:00
parent 731f7d5200
commit d9e42aea74
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,13 @@
// See #3657 - https://github.com/rust-lang/rustfmt/issues/3657
#![feature(associated_type_bounds)]
fn f<I: Iterator<Item: Clone>>() {}
fn g<I: Iterator<Item : Clone>>() {}
fn h<I: Iterator<Item : Clone>>() {}
fn i<I: Iterator<Item:Clone>>() {}
fn j<I: Iterator<Item : Clone+'a>>() {}

View File

@ -0,0 +1,13 @@
// See #3657 - https://github.com/rust-lang/rustfmt/issues/3657
#![feature(associated_type_bounds)]
fn f<I: Iterator<Item: Clone>>() {}
fn g<I: Iterator<Item: Clone>>() {}
fn h<I: Iterator<Item: Clone>>() {}
fn i<I: Iterator<Item: Clone>>() {}
fn j<I: Iterator<Item: Clone + 'a>>() {}