about summary refs log tree commit diff
path: root/tests/ui/async-await/issues/issue-78654.rs
blob: eb8bf27ff837dc3bb9d5a0fa0cd2c551c24d1ca9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ edition:2018
//@ revisions: full min

#![cfg_attr(full, feature(adt_const_params))]
#![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() {}