rustdoc: get rid of extra line when line-wrapping fn decls with empty arg list
This commit is contained in:
parent
e0ba2d038d
commit
d23c334707
3 changed files with 15 additions and 1 deletions
12
tests/rustdoc/decl-line-wrapping-empty-arg-list.rs
Normal file
12
tests/rustdoc/decl-line-wrapping-empty-arg-list.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
// Ensure that we don't add an extra line containing nothing but whitespace in between the two
|
||||
// parentheses of an empty argument list when line-wrapping a function declaration.
|
||||
|
||||
// ignore-tidy-linelength
|
||||
|
||||
pub struct Padding00000000000000000000000000000000000000000000000000000000000000000000000000000000;
|
||||
|
||||
// @has 'decl_line_wrapping_empty_arg_list/fn.create.html'
|
||||
// @snapshot decl - '//pre[@class="rust item-decl"]'
|
||||
pub fn create() -> Padding00000000000000000000000000000000000000000000000000000000000000000000000000000000 {
|
||||
loop {}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue