1 /// This is a test for needless `fn main()` in doctests.
15 /// This shouldn't lint, because the `main` is empty:
20 /// This shouldn't lint either, because there's a `static`:
22 /// static ANSWER: i32 = 42;
25 /// assert_eq!(42, ANSWER);
29 /// Neither should this lint because of `extern crate`:
32 /// extern crate test;
34 /// assert_eq(1u8, test::black_box(1));
37 fn no_false_positives() {}