summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/in-trait/default-body-type-err-2.rs
blob: 45ae2b8ad3a69c83a7ae23660dbc2e69e63518c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// edition:2021

#![allow(incomplete_features)]
#![feature(async_fn_in_trait)]

pub trait Foo {
    async fn woopsie_async(&self) -> String {
        42
        //~^ ERROR mismatched types
    }
}

fn main() {}