Update let_underscore.rs
This commit is contained in:
parent
3ff010bdbc
commit
6b5f2753f7
@ -11,7 +11,7 @@ declare_lint! {
|
|||||||
/// scope.
|
/// scope.
|
||||||
///
|
///
|
||||||
/// ### Example
|
/// ### Example
|
||||||
/// ```rust,compile_fail
|
/// ```
|
||||||
/// struct SomeStruct;
|
/// struct SomeStruct;
|
||||||
/// impl Drop for SomeStruct {
|
/// impl Drop for SomeStruct {
|
||||||
/// fn drop(&mut self) {
|
/// fn drop(&mut self) {
|
||||||
@ -56,7 +56,7 @@ declare_lint! {
|
|||||||
/// of at end of scope, which is typically incorrect.
|
/// of at end of scope, which is typically incorrect.
|
||||||
///
|
///
|
||||||
/// ### Example
|
/// ### Example
|
||||||
/// ```compile_fail
|
/// ```rust,compile_fail
|
||||||
/// use std::sync::{Arc, Mutex};
|
/// use std::sync::{Arc, Mutex};
|
||||||
/// use std::thread;
|
/// use std::thread;
|
||||||
/// let data = Arc::new(Mutex::new(0));
|
/// let data = Arc::new(Mutex::new(0));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user