mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
fix boxed_local example
This commit is contained in:
parent
8105260d6e
commit
827082ac41
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ pub struct EscapePass;
|
|||
/// foo(*x);
|
||||
/// println!("{}", *x);
|
||||
/// }
|
||||
/// ```
|
||||
declare_lint!(pub BOXED_LOCAL, Warn, "using Box<T> where unnecessary");
|
||||
|
||||
struct EscapeDelegate<'a, 'tcx: 'a> {
|
||||
|
|
Loading…
Reference in a new issue