From d9e42aea74d2f21b067c9140ffdfb14a456b208d Mon Sep 17 00:00:00 2001 From: calebcartwright Date: Sat, 29 Jun 2019 10:11:20 -0500 Subject: [PATCH] tests: add tests for assoscaited_type_bounds fix --- tests/source/associated_type_bounds.rs | 13 +++++++++++++ tests/target/associated_type_bounds.rs | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 tests/source/associated_type_bounds.rs create mode 100644 tests/target/associated_type_bounds.rs diff --git a/tests/source/associated_type_bounds.rs b/tests/source/associated_type_bounds.rs new file mode 100644 index 00000000000..8572778a5a5 --- /dev/null +++ b/tests/source/associated_type_bounds.rs @@ -0,0 +1,13 @@ +// See #3657 - https://github.com/rust-lang/rustfmt/issues/3657 + +#![feature(associated_type_bounds)] + +fn f>() {} + +fn g>() {} + +fn h>() {} + +fn i>() {} + +fn j>() {} diff --git a/tests/target/associated_type_bounds.rs b/tests/target/associated_type_bounds.rs new file mode 100644 index 00000000000..2dcbd65f86d --- /dev/null +++ b/tests/target/associated_type_bounds.rs @@ -0,0 +1,13 @@ +// See #3657 - https://github.com/rust-lang/rustfmt/issues/3657 + +#![feature(associated_type_bounds)] + +fn f>() {} + +fn g>() {} + +fn h>() {} + +fn i>() {} + +fn j>() {}