summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue_4057.rs
blob: 7cd80734bd99567ca2d3d63e7ba54f305c7088e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// rustfmt-format_code_in_doc_comments: true

/// ```
/// # #[rustversion::since(1.36)]
/// # fn dox() {
/// # use std::pin::Pin;
/// # type Projection<'a> = &'a ();
/// # type ProjectionRef<'a> = &'a ();
/// # trait Dox {
/// fn   project_ex (self: Pin<&mut Self>) -> Projection<'_>;
/// fn   project_ref(self: Pin<&Self>) -> ProjectionRef<'_>;
/// # }
/// # }
/// ```
struct Foo;