]> git.lizzy.rs Git - rust.git/blob - tests/ui/stability-attribute/stability-attribute-implies-using-stable.rs
Rollup merge of #107091 - clubby789:infer-ftl-missing-dollar, r=compiler-errors
[rust.git] / tests / ui / stability-attribute / stability-attribute-implies-using-stable.rs
1 // aux-build:stability-attribute-implies.rs
2 #![deny(stable_features)]
3 #![feature(foo)]
4 //~^ ERROR the feature `foo` has been partially stabilized since 1.62.0 and is succeeded by the feature `foobar`
5
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.
9
10 extern crate stability_attribute_implies;
11 use stability_attribute_implies::foo;
12
13 fn main() {
14     foo();
15 }