Various tweaks
This commit is contained in:
parent
8749250327
commit
eed98d55fb
12 changed files with 42 additions and 49 deletions
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// error-pattern: can't capture dynamic environment in a fn item;
|
||||
// error-pattern: can't capture dynamic environment in a fn item
|
||||
fn foo() {
|
||||
let x: isize;
|
||||
fn bar() { log(debug, x); }
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// error-pattern: can't capture dynamic environment in a fn item;
|
||||
// error-pattern: can't capture dynamic environment in a fn item
|
||||
fn foo(x: isize) {
|
||||
fn bar() { log(debug, x); }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// error-pattern: can't capture dynamic environment in a fn item;
|
||||
// error-pattern: can't capture dynamic environment in a fn item
|
||||
fn foo(x: isize) {
|
||||
fn mth() {
|
||||
fn bar() { log(debug, x); }
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
|
||||
// error-pattern: can't capture dynamic environment in a fn item;
|
||||
// error-pattern: can't capture dynamic environment in a fn item
|
||||
|
||||
fn main() {
|
||||
let bar: isize = 5;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue