]>
Commit | Line | Data |
---|---|---|
29967ef6 XL |
1 | // edition:2018 |
2 | // revisions: full min | |
3 | ||
4 | #![cfg_attr(full, feature(const_generics))] | |
5 | #![cfg_attr(full, allow(incomplete_features))] | |
29967ef6 XL |
6 | |
7 | struct Foo; | |
8 | ||
9 | impl<const H: feature> Foo { | |
10 | //~^ ERROR: expected type, found built-in attribute `feature` | |
11 | //~^^ ERROR: the const parameter `H` is not constrained by the impl trait, self type, or predicates | |
12 | async fn biz() {} | |
13 | } | |
14 | ||
15 | fn main() {} |