]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
94222f64
XL
1// edition:2018
2
a2a8927a 3// Test that even when `const` is already present, the proposed fix is to remove the second `const`
94222f64
XL
4
5const 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`
a2a8927a
XL
8//~| HELP `const` already used earlier, remove this one
9//~| NOTE `const` first seen here