blob: 623237763100dd7741e88fe5050366650cd9b66f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// edition:2021
// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
// revisions: current next
#![allow(incomplete_features)]
#![feature(async_fn_in_trait)]
pub trait Foo {
async fn woopsie_async(&self) -> String {
42
//~^ ERROR mismatched types
}
}
fn main() {}
|