2024-01-17 08:52:38 -06:00
|
|
|
//! 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
|
2024-04-24 20:11:19 -05:00
|
|
|
//~| ERROR invalid `self` parameter type: `&dyn Foo`
|
2024-01-17 08:52:38 -06:00
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|