Add test for removed one character last line in rustdoc

This commit is contained in:
Guillaume Gomez 2021-11-06 19:42:43 +01:00
parent e8f1d57d80
commit aa6f6f47cd
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#![crate_name = "foo"]
#![no_std]
// @has 'foo/fn.foo.html'
// @has - '//*[@class="docblock"]' 'inc2 x'
#[doc = include_str!("short-line.md")]
pub fn foo() {}

View File

@ -0,0 +1,2 @@
inc2
x