mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
tests: add tests for assoscaited_type_bounds fix
This commit is contained in:
parent
731f7d5200
commit
d9e42aea74
13
tests/source/associated_type_bounds.rs
Normal file
13
tests/source/associated_type_bounds.rs
Normal 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>>() {}
|
13
tests/target/associated_type_bounds.rs
Normal file
13
tests/target/associated_type_bounds.rs
Normal 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>>() {}
|
Loading…
Reference in New Issue
Block a user