about summary refs log tree commit diff
path: root/tests/ui/traits/const-traits/const-trait-async-assoc-fn.stderr
blob: 09ba0969dc994455ddb7529531c9a7db5f073a91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: async functions are not allowed in `const` traits
  --> $DIR/const-trait-async-assoc-fn.rs:5:5
   |
LL | const trait Tr {
   | ----- associated functions of `const` cannot be declared `async`
LL |     async fn ft1() {}
   |     ^^^^^

error: async functions are not allowed in `const` trait impls
  --> $DIR/const-trait-async-assoc-fn.rs:14:5
   |
LL | impl const Tr2 for () {
   |      ----- associated functions of `const` cannot be declared `async`
LL |     async fn f() {}
   |     ^^^^^

error: aborting due to 2 previous errors