mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
13 lines
344 B
Rust
13 lines
344 B
Rust
//@ aux-build:unstable_feature.rs
|
|
extern crate unstable_feature;
|
|
use unstable_feature::{Foo, Bar, Moo};
|
|
|
|
// FIXME: both `feat_bar` and `feat_moo` are needed to pass this test,
|
|
// but the diagnostic only will point out `feat_bar`.
|
|
|
|
fn main() {
|
|
Bar::foo();
|
|
//~^ ERROR: use of unstable library feature `feat_bar` [E0658]
|
|
Moo::foo();
|
|
}
|