2022-07-13 12:10:37 +00:00
|
|
|
//@ aux-build:stability-attribute-implies.rs
|
|
|
|
|
|
|
|
// Tests that despite the `foobar` feature being implied by now-stable feature `foo`, if `foobar`
|
|
|
|
// isn't allowed in this crate then an error will be emitted.
|
|
|
|
|
|
|
|
extern crate stability_attribute_implies;
|
|
|
|
use stability_attribute_implies::{foo, foobar};
|
2024-11-02 23:10:24 +00:00
|
|
|
//~^ ERROR use of unstable library feature `foobar`
|
2022-07-13 12:10:37 +00:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
foo(); // no error - stable
|
2024-11-02 23:10:24 +00:00
|
|
|
foobar(); //~ ERROR use of unstable library feature `foobar`
|
2022-07-13 12:10:37 +00:00
|
|
|
}
|