]> git.lizzy.rs Git - rust.git/blob - tests/ui/feature-gates/feature-gate-deprecated_safe.rs
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / ui / feature-gates / feature-gate-deprecated_safe.rs
1 #[deprecated_safe(since = "TBD", note = "...")] //~ ERROR: the `#[deprecated_safe]` attribute is an experimental feature
2 unsafe fn deprecated_safe_fn() {}
3
4 #[deprecated_safe(since = "TBD", note = "...")] //~ ERROR: the `#[deprecated_safe]` attribute is an experimental feature
5 unsafe trait DeprecatedSafeTrait {}
6
7 fn main() {}