2020-11-04 09:32:18 -06:00
|
|
|
//@ edition:2018
|
|
|
|
//@ revisions: full min
|
|
|
|
|
2021-08-30 03:59:53 -05:00
|
|
|
#![cfg_attr(full, feature(adt_const_params))]
|
2020-11-04 09:32:18 -06:00
|
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
|
|
|
|
|
|
|
struct Foo;
|
|
|
|
|
|
|
|
impl<const H: feature> Foo {
|
|
|
|
//~^ ERROR: expected type, found built-in attribute `feature`
|
|
|
|
//~^^ ERROR: the const parameter `H` is not constrained by the impl trait, self type, or predicates
|
|
|
|
async fn biz() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|