summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-2526.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue-2526.rs')
-rw-r--r--src/tools/rustfmt/tests/target/issue-2526.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue-2526.rs b/src/tools/rustfmt/tests/target/issue-2526.rs
new file mode 100644
index 000000000..7dd58aba3
--- /dev/null
+++ b/src/tools/rustfmt/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