]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/issues/issue-87217-keyword-order/const-async-const.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / parser / issues / issue-87217-keyword-order / const-async-const.rs
1 // edition:2018
2
3 // Test that even when `const` is already present, the proposed fix is to remove the second `const`
4
5 const async const fn test() {}
6 //~^ ERROR expected one of `extern`, `fn`, or `unsafe`, found keyword `const`
7 //~| NOTE expected one of `extern`, `fn`, or `unsafe`
8 //~| HELP `const` already used earlier, remove this one
9 //~| NOTE `const` first seen here