dfeec247 |
1 | #![feature(const_trait_impl)] |
dfeec247 XL |
2 | #![allow(bare_trait_objects)] |
3 | |
4 | struct S; |
5 | trait T {} |
6 | |
7 | impl const S {} |
8 | //~^ ERROR inherent impls cannot be `const` |
dfeec247 XL |
9 | |
10 | impl const T {} |
11 | //~^ ERROR inherent impls cannot be `const` |
dfeec247 XL |
12 | |
13 | fn main() {} |