about summary refs log tree commit diff
path: root/tests/ui/unstable-feature-bound/unstable-feature-bound-two-error.rs
blob: 798c2d8562c0ac0b187a95016075b4084e863843 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ 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();
}