]> git.proxmox.com Git - rustc.git/blob - src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-trait.rs
Update upstream source from tag 'upstream/1.51.0+dfsg1'
[rustc.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 type arguments but 1 type argument was supplied
7 //~| ERROR associated type `Output` not found for `Trait`
8
9 fn main() {}