mirror of https://github.com/rust-lang/rust.git
fix boxed_local example
This commit is contained in:
parent
8105260d6e
commit
827082ac41
|
@ -28,6 +28,7 @@ pub struct EscapePass;
|
||||||
/// foo(*x);
|
/// foo(*x);
|
||||||
/// println!("{}", *x);
|
/// println!("{}", *x);
|
||||||
/// }
|
/// }
|
||||||
|
/// ```
|
||||||
declare_lint!(pub BOXED_LOCAL, Warn, "using Box<T> where unnecessary");
|
declare_lint!(pub BOXED_LOCAL, Warn, "using Box<T> where unnecessary");
|
||||||
|
|
||||||
struct EscapeDelegate<'a, 'tcx: 'a> {
|
struct EscapeDelegate<'a, 'tcx: 'a> {
|
||||||
|
|
Loading…
Reference in New Issue