about summary refs log tree commit diff
path: root/tests/ui/unstable-feature-bound/unstable-feature-cross-crate-require-bound.rs
blob: 8be214b5324cc17b0a59b450c72975e82a23aae7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ 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]
}