blob: 0d6e4ebb4085fe84429b18518b277f70161bbc96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#![allow(internal_features)]
#![feature(staged_api)]
#![stable(feature = "a", since = "1.1.1" )]
/// FIXME(tiif): we haven't allowed marking trait and impl method as
/// unstable yet, but it should be possible.
#[stable(feature = "a", since = "1.1.1" )]
pub trait Trait {
#[unstable(feature = "feat", issue = "none" )]
#[unstable_feature_bound(foo)]
//~^ ERROR: attribute should be applied to `impl`, trait or free function
fn foo();
}
#[stable(feature = "a", since = "1.1.1" )]
impl Trait for u8 {
#[unstable_feature_bound(foo)]
//~^ ERROR: attribute should be applied to `impl`, trait or free function
fn foo() {}
}
fn main() {}
|