]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-78654.rs
Rollup merge of #103766 - lukas-code:error-in-core, r=Dylan-DPC
[rust.git] / src / test / ui / async-await / issues / issue-78654.rs
1 // edition:2018
2 // revisions: full min
3
4 #![cfg_attr(full, feature(adt_const_params))]
5 #![cfg_attr(full, allow(incomplete_features))]
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() {}