diff options
Diffstat (limited to 'tests/ui/error-codes/E0059.rs')
-rw-r--r-- | tests/ui/error-codes/E0059.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0059.rs b/tests/ui/error-codes/E0059.rs new file mode 100644 index 000000000..f775089bf --- /dev/null +++ b/tests/ui/error-codes/E0059.rs @@ -0,0 +1,6 @@ +#![feature(unboxed_closures)] + +fn foo<F: Fn<i32>>(f: F) -> F::Output { f(3) } //~ ERROR E0059 + +fn main() { +} |