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

/// Aux crate for unstable impl codegen test.

#[stable(feature = "a", since = "1.1.1" )]
pub trait Trait {
    #[stable(feature = "a", since = "1.1.1" )]
    fn method(&self);
}

#[unstable_feature_bound(foo)]
#[unstable(feature = "foo", issue = "none" )]
impl<T> Trait for T {
    fn method(&self) {
        println!("hi");
    }
}