enable rust_2018_idioms
for doctests
Signed-off-by: ozkanonur <work@onurozkan.dev>
This commit is contained in:
parent
8b8110e146
commit
4e7c14fe9f
37 changed files with 125 additions and 101 deletions
|
@ -333,6 +333,7 @@ declare_lint! {
|
|||
///
|
||||
/// ```rust,compile_fail
|
||||
/// #![deny(unused_extern_crates)]
|
||||
/// #![deny(warnings)]
|
||||
/// extern crate proc_macro;
|
||||
/// ```
|
||||
///
|
||||
|
@ -1667,6 +1668,7 @@ declare_lint! {
|
|||
///
|
||||
/// ```rust,compile_fail
|
||||
/// #![deny(elided_lifetimes_in_paths)]
|
||||
/// #![deny(warnings)]
|
||||
/// struct Foo<'a> {
|
||||
/// x: &'a u32
|
||||
/// }
|
||||
|
@ -2158,6 +2160,7 @@ declare_lint! {
|
|||
/// ```rust,compile_fail
|
||||
/// # #![allow(unused)]
|
||||
/// #![deny(explicit_outlives_requirements)]
|
||||
/// #![deny(warnings)]
|
||||
///
|
||||
/// struct SharedRef<'a, T>
|
||||
/// where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue