]> git.lizzy.rs Git - rust.git/blob - tests/source/issue_4057.rs
Prevent duplicate comma when formatting struct pattern with ".."
[rust.git] / tests / source / issue_4057.rs
1 // rustfmt-format_code_in_doc_comments: true
2
3 /// ```
4 /// # #[rustversion::since(1.36)]
5 /// # fn dox() {
6 /// # use std::pin::Pin;
7 /// # type Projection<'a> = &'a ();
8 /// # type ProjectionRef<'a> = &'a ();
9 /// # trait Dox {
10 /// fn   project_ex (self: Pin<&mut Self>) -> Projection<'_>;
11 /// fn   project_ref(self: Pin<&Self>) -> ProjectionRef<'_>;
12 /// # }
13 /// # }
14 /// ```
15 struct Foo;