]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/in-trait/early-bound-2.rs
Merge commit 'f4850f7292efa33759b4f7f9b7621268979e9914' into clippyup
[rust.git] / src / test / ui / async-await / in-trait / early-bound-2.rs
1 // check-pass
2 // edition:2021
3
4 #![feature(async_fn_in_trait)]
5 #![allow(incomplete_features)]
6
7 pub trait Foo {
8     async fn foo(&mut self);
9 }
10
11 impl<T: Foo> Foo for &mut T {
12     async fn foo(&mut self) {}
13 }
14
15 fn main() {}