]>
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")] | |
2b03887a | 6 | #[const_trait] |
136023e0 XL |
7 | pub trait MyTrait { |
8 | #[stable(feature = "rust1", since = "1.0.0")] | |
9 | fn func(); | |
10 | } | |
11 | ||
12 | #[stable(feature = "rust1", since = "1.0.0")] | |
13 | pub struct Unstable; | |
14 | ||
15 | #[stable(feature = "rust1", since = "1.0.0")] | |
923072b8 | 16 | #[rustc_const_unstable(feature = "unstable", issue = "none")] |
136023e0 | 17 | impl const MyTrait for Unstable { |
923072b8 | 18 | fn func() {} |
136023e0 | 19 | } |