]> git.lizzy.rs Git - rust.git/commitdiff
Add a test for #2526
authorSeiichi Uchida <seuchida@gmail.com>
Fri, 9 Mar 2018 16:19:26 +0000 (01:19 +0900)
committerSeiichi Uchida <seuchida@gmail.com>
Fri, 9 Mar 2018 16:19:26 +0000 (01:19 +0900)
tests/target/issue-2526.rs [new file with mode: 0644]

diff --git a/tests/target/issue-2526.rs b/tests/target/issue-2526.rs
new file mode 100644 (file)
index 0000000..7dd58ab
--- /dev/null
@@ -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