fix boxed_local example

This commit is contained in:
llogiq 2015-12-14 21:17:11 +01:00
parent 8105260d6e
commit 827082ac41

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