summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-4398.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue-4398.rs')
-rw-r--r--src/tools/rustfmt/tests/target/issue-4398.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue-4398.rs b/src/tools/rustfmt/tests/target/issue-4398.rs
new file mode 100644
index 000000000..2ca894528
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/issue-4398.rs
@@ -0,0 +1,19 @@
+impl Struct {
+ /// Documentation for `foo`
+ #[rustfmt::skip] // comment on why use a skip here
+ pub fn foo(&self) {}
+}
+
+impl Struct {
+ /// Documentation for `foo`
+ #[rustfmt::skip] // comment on why use a skip here
+ pub fn foo(&self) {}
+}
+
+/// Documentation for `Struct`
+#[rustfmt::skip] // comment
+impl Struct {
+ /// Documentation for `foo`
+ #[rustfmt::skip] // comment on why use a skip here
+ pub fn foo(&self) {}
+}