1 // aux-build:stability-attribute-implies.rs
2 #![deny(stable_features)]
4 //~^ ERROR the feature `foo` has been partially stabilized since 1.62.0 and is succeeded by the feature `foobar`
6 // Tests that the use of `implied_by` in the `#[unstable]` attribute results in a diagnostic
7 // mentioning partial stabilization, and that given the implied unstable feature is unused (there
8 // is no `foobar` call), that the compiler suggests removing the flag.
10 extern crate stability_attribute_implies;
11 use stability_attribute_implies::foo;