summaryrefslogtreecommitdiff
path: root/tests/ui/async-await/in-trait/dont-project-to-specializable-projection.current.stderr
blob: eec5ab065397cf09f80e3d340f76edf4a6f3ee0b (plain)
1
2
3
4
5
6
7
8
9
10
error: async associated function in trait cannot be specialized
  --> $DIR/dont-project-to-specializable-projection.rs:16:5
   |
LL |     default async fn foo(_: T) -> &'static str {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: specialization behaves in inconsistent and surprising ways with `#![feature(async_fn_in_trait)]`, and for now is disallowed

error: aborting due to previous error