]> git.proxmox.com Git - rustc.git/blob - src/tools/rustfmt/tests/source/configs/doc_comment_code_block_width/100_greater_max_width.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / tools / rustfmt / tests / source / configs / doc_comment_code_block_width / 100_greater_max_width.rs
1 // rustfmt-max_width: 50
2 // rustfmt-format_code_in_doc_comments: true
3 // rustfmt-doc_comment_code_block_width: 100
4
5 /// ```rust
6 /// impl Test {
7 /// pub const fn from_bytes(v: &[u8]) -> Result<Self, ParserError> {
8 /// Self::from_bytes_manual_slice(v, 0, v.len() )
9 /// }
10 /// }
11 /// ```
12
13 impl Test {
14 pub const fn from_bytes(v: &[u8]) -> Result<Self, ParserError> {
15 Self::from_bytes_manual_slice(v, 0, v.len() )
16 }
17 }