1
Fork 0

Add a fn main() {} to a doctest to prevent the test from being wrapped in a fn main() {} body

This commit is contained in:
Oli Scherer 2024-06-11 15:32:38 +00:00
parent 0bc2001879
commit 85f2ecab57
2 changed files with 6 additions and 0 deletions

View file

@ -46,6 +46,8 @@ declare_lint! {
/// fn test() -> impl Trait<Assoc = Tait> {
/// 42
/// }
///
/// fn main() {}
/// ```
///
/// {{produces}}