Skip to content

Commit 867bd15

Browse files
add main function to test itself
1 parent a5d05f2 commit 867bd15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/ui/doc/needless_doctest_main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@
1616
/// }
1717
/// ```
1818
fn foo() {}
19+
20+
fn main() {}

0 commit comments

Comments
 (0)