summaryrefslogtreecommitdiffstats
path: root/tests/ui/unboxed-closures/unboxed-closure-sugar-wrong-trait.rs
blob: ad60b0a0c7753faa2e6e07f718b90c0e47e2d392 (plain)
1
2
3
4
5
6
7
8
9
#![feature(unboxed_closures)]

trait Trait {}

fn f<F:Trait(isize) -> isize>(x: F) {}
//~^ ERROR trait takes 0 generic arguments but 1 generic argument
//~| ERROR associated type `Output` not found for `Trait`

fn main() {}