From: Seiichi Uchida Date: Fri, 9 Mar 2018 16:19:26 +0000 (+0900) Subject: Add a test for #2526 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=9905c569ba42814c3afcd30ba3d599d999946f0f;p=rust.git Add a test for #2526 --- 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