Add a fn main() {}
to a doctest to prevent the test from being wrapped in a fn main() {}
body
This commit is contained in:
parent
0bc2001879
commit
85f2ecab57
2 changed files with 6 additions and 0 deletions
|
@ -46,6 +46,8 @@ declare_lint! {
|
|||
/// fn test() -> impl Trait<Assoc = Tait> {
|
||||
/// 42
|
||||
/// }
|
||||
///
|
||||
/// fn main() {}
|
||||
/// ```
|
||||
///
|
||||
/// {{produces}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue