about summary refs log tree commit diff
path: root/tests/ui/unstable-feature-bound/auxiliary/unstable_feature.rs
blob: 3749deb76273fd1c48367c7e9442e544aba9b192 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#![allow(internal_features)]
#![feature(staged_api)]
#![stable(feature = "a", since = "1.1.1" )]

#[stable(feature = "a", since = "1.1.1" )]
pub trait Foo {
    #[stable(feature = "a", since = "1.1.1" )]
    fn foo();
}
#[stable(feature = "a", since = "1.1.1" )]
pub struct Bar;
#[stable(feature = "a", since = "1.1.1" )]
pub struct Moo;

#[unstable_feature_bound(feat_bar)]
#[unstable(feature = "feat_bar", issue = "none" )]
impl Foo for Bar {
    fn foo() {}
}

#[unstable_feature_bound(feat_moo)]
#[unstable(feature = "feat_moo", issue = "none" )]
impl Foo for Moo {
    fn foo() {}
}