rust/tests/ui/async-await/issues/issue-78654.rs

16 lines
376 B
Rust
Raw Normal View History

2020-11-04 09:32:18 -06:00
// edition:2018
// revisions: full min
#![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() {}