]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/issues/issue-78654.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / async-await / issues / issue-78654.rs
CommitLineData
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
7struct Foo;
8
9impl<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
15fn main() {}