]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/in-trait/early-bound-1.rs
Auto merge of #103459 - ChrisDenton:propagate-nulls, r=thomcc
[rust.git] / src / test / ui / async-await / in-trait / early-bound-1.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 struct MyFoo<'a>(&'a mut ());
12
13 impl<'a> Foo for MyFoo<'a> {
14     async fn foo(&mut self) {}
15 }
16
17 fn main() {}