]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/in-trait/default-body-with-rpit.rs
Auto merge of #106742 - compiler-errors:new-solver-make-it-not-ice, r=lcnr
[rust.git] / tests / ui / impl-trait / in-trait / default-body-with-rpit.rs
1 // check-pass
2 // edition:2021
3
4 #![feature(async_fn_in_trait, return_position_impl_trait_in_trait)]
5 #![allow(incomplete_features)]
6
7 use std::fmt::Debug;
8
9 trait Foo {
10     async fn baz(&self) -> impl Debug {
11         ""
12     }
13 }
14
15 struct Bar;
16
17 impl Foo for Bar {}
18
19 fn main() {
20     let _ = Bar.baz();
21 }