]>
Commit | Line | Data |
---|---|---|
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 | |
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` | |
a2a8927a XL |
8 | //~| HELP `const` already used earlier, remove this one |
9 | //~| NOTE `const` first seen here |