rust/src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-trait.rs
2018-12-25 21:08:33 -07:00

10 lines
188 B
Rust

#![feature(unboxed_closures)]
trait Trait {}
fn f<F:Trait(isize) -> isize>(x: F) {}
//~^ ERROR wrong number of type arguments: expected 0, found 1 [E0107]
//~| ERROR E0220
fn main() {}