about summary refs log tree commit diff
path: root/tests/ui/fn/trait-fn-generic-mismatch.rs
blob: dc8222e967e4c04aded1ebb05ecb7935fc12eef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
fn retry() -> impl Sized {}

struct Core<T>(T);

impl Core<XXX> { //~ ERROR cannot find type `XXX` in this scope
    pub fn spawn(self) {}
}

fn main() {
    let core = Core(1);
    core.spawn(retry()); //~ ERROR this method takes 0 arguments but 1 argument was supplied
}