]> git.lizzy.rs Git - rust.git/blob - tests/ui/stability-attribute/stability-attribute-implies-no-feature.rs
Rollup merge of #107091 - clubby789:infer-ftl-missing-dollar, r=compiler-errors
[rust.git] / tests / ui / stability-attribute / stability-attribute-implies-no-feature.rs
1 // aux-build:stability-attribute-implies.rs
2
3 // Tests that despite the `foobar` feature being implied by now-stable feature `foo`, if `foobar`
4 // isn't allowed in this crate then an error will be emitted.
5
6 extern crate stability_attribute_implies;
7 use stability_attribute_implies::{foo, foobar};
8 //~^ ERROR use of unstable library feature 'foobar'
9
10 fn main() {
11     foo(); // no error - stable
12     foobar(); //~ ERROR use of unstable library feature 'foobar'
13 }