]> git.proxmox.com Git - rustc.git/blob - tests/ui/stability-attribute/stability-attribute-implies-no-feature.rs
New upstream version 1.68.2+dfsg1
[rustc.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 }