summaryrefslogtreecommitdiffstats
path: root/tests/ui/stability-attribute/stability-attribute-implies-missing.rs
blob: 613878536721b3eeda65d59930abcd2c714811b4 (plain)
1
2
3
4
5
6
7
8
9
10
#![feature(staged_api)]
#![stable(feature = "stability_attribute_implies", since = "1.0.0")]

// Tests that `implied_by = "bar"` results in an error being emitted if `bar` does not exist.

#[unstable(feature = "foobar", issue = "1", implied_by = "bar")]
//~^ ERROR feature `bar` implying `foobar` does not exist
pub fn foobar() {}

fn main() {}