summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/const-async-fn-in-main.stderr
blob: 06f3e34629a55b395b5051d77bff6001fc087e7a (plain)
1
2
3
4
5
6
7
8
9
10
11
error: functions cannot be both `const` and `async`
  --> $DIR/const-async-fn-in-main.rs:5:5
   |
LL |     const async fn a() {}
   |     ^^^^^-^^^^^----------
   |     |     |
   |     |     `async` because of this
   |     `const` because of this

error: aborting due to 1 previous error