mirror of https://github.com/KaiserY/trpl-zh-cn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
383 B
13 lines
383 B
$ cargo run
|
|
Compiling equal-to-x v0.1.0 (file:///projects/equal-to-x)
|
|
error[E0434]: can't capture dynamic environment in a fn item
|
|
--> src/main.rs:5:14
|
|
|
|
|
5 | z == x
|
|
| ^
|
|
|
|
|
= help: use the `|| { ... }` closure form instead
|
|
|
|
For more information about this error, try `rustc --explain E0434`.
|
|
error: could not compile `equal-to-x` due to previous error
|