mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
2a1d748254
or inline such functions if useless.
13 lines
263 B
Rust
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() {}
|