rust/tests/ui/feature-gates/feature-gate-derive-from.rs
Jakub Beránek a6a760edaf
Remove the From derive macro from prelude
To avoid backwards compatibility problems.
2025-08-18 13:12:19 +02:00

7 lines
180 B
Rust

use std::from::From; //~ ERROR use of unstable library feature `derive_from
#[derive(From)] //~ ERROR use of unstable library feature `derive_from`
struct Foo(u32);
fn main() {}