]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/issue-66312.rs
Rollup merge of #106854 - steffahn:drop_linear_arc_rebased, r=Mark-Simulacrum
[rust.git] / tests / ui / async-await / issue-66312.rs
1 // edition:2018
2
3 trait Test<T> {
4     fn is_some(self: T); //~ ERROR invalid `self` parameter type
5 }
6
7 async fn f() {
8     let x = Some(2);
9     if x.is_some() {
10         println!("Some");
11     }
12 }
13
14 fn main() {}