rust/tests/ui/async-await/issue-66312.rs

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

15 lines
206 B
Rust
Raw Normal View History

// edition:2018
trait Test<T> {
fn is_some(self: T); //~ ERROR invalid `self` parameter type
}
async fn f() {
let x = Some(2);
if x.is_some() {
println!("Some");
}
}
fn main() {}