Avoid needless_doctest_main on 'extern crate'
This commit is contained in:
parent
2730d64d77
commit
129d0cd0f4
2 changed files with 12 additions and 1 deletions
|
|
@ -25,6 +25,15 @@ fn bad_doctest() {}
|
|||
/// assert_eq!(42, ANSWER);
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
/// Neither should this lint because of `extern crate`:
|
||||
/// ```
|
||||
/// #![feature(test)]
|
||||
/// extern crate test;
|
||||
/// fn main() {
|
||||
/// assert_eq(1u8, test::black_box(1));
|
||||
/// }
|
||||
/// ```
|
||||
fn no_false_positives() {}
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue