1 /// This is a test for needless `fn main()` in doctests.
31 /// This shouldn't lint, because the `main` is empty:
36 /// This shouldn't lint either, because there's a `static`:
38 /// static ANSWER: i32 = 42;
41 /// assert_eq!(42, ANSWER);
45 /// Neither should this lint because of `extern crate`:
48 /// extern crate test;
50 /// assert_eq(1u8, test::black_box(1));
54 /// We should not lint ignored examples:
62 /// Or even non-rust examples:
66 /// is what starts the program
69 fn no_false_positives() {}