rust/src/test/ui/impl-trait/in-trait/default-body.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
229 B
Rust
Raw Normal View History

// check-pass
// edition:2021
#![feature(return_position_impl_trait_in_trait)]
#![allow(incomplete_features)]
use std::fmt::Debug;
trait Foo {
async fn baz() -> impl Debug {
Self::baz().await
}
}
fn main() {}