Rust errors / Ownership and borrowing
Rust compiler error · checked with rustc 1.99.0
Rust error E0557: feature has been removed
What it meansA feature attribute named a feature that has been removed.
What rustc prints
error[E0557]: feature has been removed --> main.rs:1:12 | 1 | #![feature(managed_boxes)] // error: feature has been removed | ^^^^^^^^^^^^^ feature has been removed | = note: removed in 1.0.0
Real output of rustc 1.99.0 compiling the official example below (2021 edition). Your names and line numbers will differ; the first line is the part to match.
The compiler team's explanation
A feature attribute named a feature that has been removed.
Erroneous code example:
#![feature(managed_boxes)] // error: feature has been removed
Delete the offending feature attribute.
From rustc --explain E0557 (1.99.0), part of the Rust project, MIT or Apache-2.0. Official page.
Related errors
- E0382borrow of moved value
- E0499cannot borrow as mutable more than once at a time
- E0502cannot borrow as mutable because it is also borrowed as immutable
- E0106missing lifetime specifier
- E0509cannot move out of type `DropStruct`, which implements the `Drop` trait
- E0521borrowed data escapes outside of closure
- E0568auto traits cannot have super traits or lifetime bounds
- E0581return type references lifetime `'a`, which is not constrained by the fn input types
Up next
Often hit nextE0382: borrow of moved valueA related error from the same family.Read it next →Did this answer your question?