blob: 9224971ecb123210b57620e5c583352d76047e2a (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
 | // 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() {}
 |