mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
15 lines
342 B
Rust
15 lines
342 B
Rust
//@ aux-build:unstable_feature.rs
|
|
//@ revisions: pass fail
|
|
//@[pass] check-pass
|
|
|
|
#![cfg_attr(pass, feature(feat_bar))]
|
|
extern crate unstable_feature;
|
|
use unstable_feature::{Foo, Bar};
|
|
|
|
/// #[feature(..)] is required to use unstable impl.
|
|
|
|
fn main() {
|
|
Bar::foo();
|
|
//[fail]~^ ERROR: use of unstable library feature `feat_bar` [E0658]
|
|
}
|