mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
5 lines
133 B
Rust
5 lines
133 B
Rust
fn main() {
|
|
let bar: isize = 5;
|
|
fn foo() -> isize { return bar; } //~ ERROR can't capture dynamic environment in a fn item
|
|
}
|