1
Fork 0

Make clippy_lints's doc tests succeed

This commit is contained in:
David Tolnay 2020-10-08 04:54:17 -07:00
parent 3a6f59ecae
commit c81bea45f4
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -75,7 +75,7 @@ declare_clippy_lint! {
/// while the latter is `&[u8; 3]`. That means in general they will have a
/// different set of methods and different trait implementations.
///
/// ```rust
/// ```compile_fail
/// fn f(v: Vec<u8>) {}
///
/// f("...".as_bytes().to_owned()); // works