about summary refs log tree commit diff
path: root/tests/ui/fn/issue-39259.rs
blob: d4569a9094b2fde5daa59c62bd0ccd22ea1cb3ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![feature(fn_traits)]
#![feature(unboxed_closures)]

struct S;

impl Fn(u32) -> u32 for S {
    //~^ ERROR associated item constraints are not allowed here [E0229]
    //~| ERROR expected a `FnMut(u32)` closure, found `S`
    fn call(&self) -> u32 {
        //~^ ERROR method `call` has 1 parameter but the declaration in trait `call` has 2
        5
    }
}

fn main() {}