rust/tests/ui/reflection/feature_gate.rs
2026-01-08 11:41:00 +00:00

8 lines
274 B
Rust

use std::mem::type_info::Type;
//~^ ERROR: use of unstable library feature `type_info`
fn main() {
let ty = std::mem::type_info::Type::of::<()>();
//~^ ERROR: use of unstable library feature `type_info`
//~| ERROR: use of unstable library feature `type_info`
}