rust/tests/ui/feature-gates/feature-gate-deprecated_safe.rs
2023-01-11 09:32:08 +00:00

8 lines
327 B
Rust

#[deprecated_safe(since = "TBD", note = "...")] //~ ERROR: the `#[deprecated_safe]` attribute is an experimental feature
unsafe fn deprecated_safe_fn() {}
#[deprecated_safe(since = "TBD", note = "...")] //~ ERROR: the `#[deprecated_safe]` attribute is an experimental feature
unsafe trait DeprecatedSafeTrait {}
fn main() {}