[−][src]Static rustc_lint::builtin::BOX_POINTERS

pub(in builtin) static BOX_POINTERS: &Lint

The box_pointers lints use of the Box type.

Example

ⓘThis example deliberately fails to compile
#![deny(box_pointers)]
struct Foo {
    x: Box<isize>,
}

{{produces}}

Explanation

This lint is mostly historical, and not particularly useful. Box<T> used to be built into the language, and the only way to do heap allocation. Today's Rust can call into other allocators, etc.