From 9905c569ba42814c3afcd30ba3d599d999946f0f Mon Sep 17 00:00:00 2001 From: Seiichi Uchida Date: Sat, 10 Mar 2018 01:19:26 +0900 Subject: [PATCH] Add a test for #2526 --- tests/target/issue-2526.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/target/issue-2526.rs diff --git a/tests/target/issue-2526.rs b/tests/target/issue-2526.rs new file mode 100644 index 00000000000..7dd58aba318 --- /dev/null +++ b/tests/target/issue-2526.rs @@ -0,0 +1,8 @@ +// Test that rustfmt will not warn about comments exceeding max width around lifetime. +// See #2526. + +// comment comment comment comment comment comment comment comment comment comment comment comment comment +fn foo() -> F<'a> { + bar() +} +// comment comment comment comment comment comment comment comment comment comment comment comment comment -- 2.44.0