]> git.lizzy.rs Git - rust.git/blob - src/test/ui/capture1.rs
Merge commit '4236289b75ee55c78538c749512cdbeea5e1c332' into update-rustfmt
[rust.git] / src / test / ui / capture1.rs
1 // error-pattern: can't capture dynamic environment in a fn item
2
3 fn main() {
4     let bar: isize = 5;
5     fn foo() -> isize { return bar; }
6 }