]>
Commit | Line | Data |
---|---|---|
136023e0 | 1 | #![feature(const_trait_impl)] |
136023e0 XL |
2 | #![feature(staged_api)] |
3 | #![stable(feature = "rust1", since = "1.0.0")] | |
4 | ||
5 | #[stable(feature = "rust1", since = "1.0.0")] | |
6 | pub trait MyTrait { | |
7 | #[stable(feature = "rust1", since = "1.0.0")] | |
8 | fn func(); | |
9 | } | |
10 | ||
11 | #[stable(feature = "rust1", since = "1.0.0")] | |
12 | pub struct Unstable; | |
13 | ||
14 | #[stable(feature = "rust1", since = "1.0.0")] | |
923072b8 | 15 | #[rustc_const_unstable(feature = "unstable", issue = "none")] |
136023e0 | 16 | impl const MyTrait for Unstable { |
923072b8 | 17 | fn func() {} |
136023e0 | 18 | } |