]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/bad-env-capture3.stderr
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / ui / resolve / bad-env-capture3.stderr
1 error[E0434]: can't capture dynamic environment in a fn item
2   --> $DIR/bad-env-capture3.rs:4:31
3    |
4 LL |         fn bar() { log(debug, x); }
5    |                               ^
6    |
7    = help: use the `|| { ... }` closure form instead
8
9 error[E0425]: cannot find value `debug` in this scope
10   --> $DIR/bad-env-capture3.rs:4:24
11    |
12 LL |         fn bar() { log(debug, x); }
13    |                        ^^^^^ not found in this scope
14
15 error[E0425]: cannot find function `log` in this scope
16   --> $DIR/bad-env-capture3.rs:4:20
17    |
18 LL |         fn bar() { log(debug, x); }
19    |                    ^^^ not found in this scope
20
21 error: aborting due to 3 previous errors
22
23 Some errors have detailed explanations: E0425, E0434.
24 For more information about an error, try `rustc --explain E0425`.