summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_lint/src/let_underscore.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_lint/src/let_underscore.rs')
-rw-r--r--compiler/rustc_lint/src/let_underscore.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/let_underscore.rs b/compiler/rustc_lint/src/let_underscore.rs
index 78f355ec3..04d844d21 100644
--- a/compiler/rustc_lint/src/let_underscore.rs
+++ b/compiler/rustc_lint/src/let_underscore.rs
@@ -11,7 +11,8 @@ declare_lint! {
/// scope.
///
/// ### Example
- /// ```
+ ///
+ /// ```rust
/// struct SomeStruct;
/// impl Drop for SomeStruct {
/// fn drop(&mut self) {
@@ -56,7 +57,7 @@ declare_lint! {
/// of at end of scope, which is typically incorrect.
///
/// ### Example
- /// ```compile_fail
+ /// ```rust,compile_fail
/// use std::sync::{Arc, Mutex};
/// use std::thread;
/// let data = Arc::new(Mutex::new(0));