fix boxed_local example

This commit is contained in:
llogiq 2015-12-14 21:17:11 +01:00
parent 8105260d6e
commit 827082ac41
1 changed files with 1 additions and 0 deletions

View File

@ -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> {