]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-trait.rs
Sync rust-lang/portable-simd@5f49d4c8435a25d804b2f375e949cb25479f5be9
[rust.git] / src / test / ui / unboxed-closures / unboxed-closure-sugar-wrong-trait.rs
1 #![feature(unboxed_closures)]
2
3 trait Trait {}
4
5 fn f<F:Trait(isize) -> isize>(x: F) {}
6 //~^ ERROR this trait takes 0 generic arguments but 1 generic argument
7 //~| ERROR associated type `Output` not found for `Trait`
8
9 fn main() {}