diff options
Diffstat (limited to 'tests/ui/deprecation/feature-gate-deprecated_suggestion.rs')
-rw-r--r-- | tests/ui/deprecation/feature-gate-deprecated_suggestion.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/deprecation/feature-gate-deprecated_suggestion.rs b/tests/ui/deprecation/feature-gate-deprecated_suggestion.rs new file mode 100644 index 000000000..a2d0023e3 --- /dev/null +++ b/tests/ui/deprecation/feature-gate-deprecated_suggestion.rs @@ -0,0 +1,6 @@ +// compile-flags: --crate-type=lib + +#![no_implicit_prelude] + +#[deprecated(suggestion = "foo")] //~ ERROR suggestions on deprecated items are unstable +struct Foo {} |