diff options
Diffstat (limited to 'src/test/compile-fail/bind-stack-closure.rs')
| -rw-r--r-- | src/test/compile-fail/bind-stack-closure.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/compile-fail/bind-stack-closure.rs b/src/test/compile-fail/bind-stack-closure.rs new file mode 100644 index 00000000000..6a08b9b56c0 --- /dev/null +++ b/src/test/compile-fail/bind-stack-closure.rs @@ -0,0 +1,10 @@ +fn foo(x: fn()) { + bind x(); //! ERROR cannot bind fn closures +} + +fn bar(x: fn&()) { + bind x(); //! ERROR cannot bind fn& closures +} + +fn main() { +} |
