rust/tests/ui/async-await/inference_var_self_argument.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
263 B
Rust
Raw Normal View History

//! 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() {}