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

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

#[stable(feature = "a", since = "1.1.1" )]
impl Trait for Vec<u32> {
    fn foo(&self) {}
}

#[unstable_feature_bound(bar)]
#[unstable(feature = "bar", issue = "none" )]
impl Trait for Vec<u64> {
    fn foo(&self) {}
}