rust/tests/ui/async-await/inference_var_self_argument.rs
León Orell Valerian Liehr 2a1d748254
Replace item names containing an error code with something more meaningful
or inline such functions if useless.
2024-04-30 22:27:19 +02:00

13 lines
263 B
Rust

//! This is a regression test for an ICE.
//@ edition: 2021
trait Foo {
async fn foo(self: &dyn Foo) {
//~^ ERROR: `Foo` cannot be made into an object
//~| ERROR invalid `self` parameter type: `&dyn Foo`
todo!()
}
}
fn main() {}