]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/unboxed-closures-wrong-trait.rs
rollup merge of #17355 : gamazeps/issue17210
[rust.git] / src / test / compile-fail / unboxed-closures-wrong-trait.rs
index 27f1da75c3aef60c6e5a61d4b3978a751164d9e3..97ad64a77baf44cb18c2d556fe648a2febdbf3c5 100644 (file)
@@ -10,7 +10,7 @@
 
 #![feature(lang_items, overloaded_calls, unboxed_closures)]
 
-fn c<F:|: int, int| -> int>(f: F) -> int {
+fn c<F:FnOnce(int, int) -> int>(f: F) -> int {
     f(5, 6)
 }