summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/configs/doc_comment_code_block_width/100_greater_max_width.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/configs/doc_comment_code_block_width/100_greater_max_width.rs')
-rw-r--r--src/tools/rustfmt/tests/target/configs/doc_comment_code_block_width/100_greater_max_width.rs29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/configs/doc_comment_code_block_width/100_greater_max_width.rs b/src/tools/rustfmt/tests/target/configs/doc_comment_code_block_width/100_greater_max_width.rs
new file mode 100644
index 000000000..6bcb99b91
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/configs/doc_comment_code_block_width/100_greater_max_width.rs
@@ -0,0 +1,29 @@
+// rustfmt-max_width: 50
+// rustfmt-format_code_in_doc_comments: true
+// rustfmt-doc_comment_code_block_width: 100
+
+/// ```rust
+/// impl Test {
+/// pub const fn from_bytes(
+/// v: &[u8],
+/// ) -> Result<Self, ParserError> {
+/// Self::from_bytes_manual_slice(
+/// v,
+/// 0,
+/// v.len(),
+/// )
+/// }
+/// }
+/// ```
+
+impl Test {
+ pub const fn from_bytes(
+ v: &[u8],
+ ) -> Result<Self, ParserError> {
+ Self::from_bytes_manual_slice(
+ v,
+ 0,
+ v.len(),
+ )
+ }
+}