rust/tests/ui/deprecation/feature-gate-deprecated_suggestion.rs
2024-02-16 20:02:50 +00:00

7 lines
165 B
Rust

//@ compile-flags: --crate-type=lib
#![no_implicit_prelude]
#[deprecated(suggestion = "foo")] //~ ERROR suggestions on deprecated items are unstable
struct Foo {}