e5e2811bc6
Changed a few error patterns to match rustc's errors where it seemed reasonable.
13 lines
169 B
Rust
13 lines
169 B
Rust
// error-pattern: attempted dynamic environment-capture
|
|
obj foo(int x) {
|
|
fn mth() {
|
|
fn bar() {
|
|
log x;
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
foo(2);
|
|
}
|