1 // aux-build:stability-attribute-implies.rs
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.
6 extern crate stability_attribute_implies
;
7 use stability_attribute_implies
::{foo, foobar}
;
8 //~^ ERROR use of unstable library feature 'foobar'
11 foo(); // no error - stable
12 foobar(); //~ ERROR use of unstable library feature 'foobar'