Skip to content

Commit 76c210f

Browse files
committed
Add test for using unstable_feature_bound on method
1 parent 7dc85a6 commit 76c210f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#![allow(internal_features)]
2+
#![feature(staged_api)]
3+
#![feature(impl_stability)]
4+
#![stable(feature = "a", since = "1.1.1" )]
5+
6+
7+
/// FIXME(tiif): we haven't allowed marking impl method as
8+
/// unstable yet, but it should be possible.
9+
10+
#[stable(feature = "a", since = "1.1.1" )]
11+
pub trait Trait {
12+
#[unstable(feature = "feat", issue = "none" )]
13+
#[unstable_feature_bound(foo)]
14+
fn foo();
15+
}
16+
17+
#[stable(feature = "a", since = "1.1.1" )]
18+
impl Trait for u8 {
19+
#[unstable_feature_bound(foo)]
20+
fn foo() {}
21+
}
22+
23+
fn main() {}

0 commit comments

Comments
 (0)