about summary refs log tree commit diff
path: root/tests/ui/resolve/bad-env-capture2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/resolve/bad-env-capture2.rs')
-rw-r--r--tests/ui/resolve/bad-env-capture2.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ui/resolve/bad-env-capture2.rs b/tests/ui/resolve/bad-env-capture2.rs
index 84d1832be60..8298e6fcd24 100644
--- a/tests/ui/resolve/bad-env-capture2.rs
+++ b/tests/ui/resolve/bad-env-capture2.rs
@@ -1,5 +1,7 @@
-//@ error-pattern: can't capture dynamic environment in a fn item
 fn foo(x: isize) {
     fn bar() { log(debug, x); }
+    //~^ ERROR can't capture dynamic environment in a fn item
+    //~| ERROR cannot find value `debug` in this scope
+    //~| ERROR cannot find function `log` in this scope
 }
 fn main() { foo(2); }