mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
11 lines
345 B
Rust
11 lines
345 B
Rust
#![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() {}
|