Convert to spaces
This commit is contained in:
parent
09a5d319ab
commit
eea290d7fd
2 changed files with 8 additions and 8 deletions
|
|
@ -15,10 +15,10 @@ fn foo(_a: (), _b: &bool) {}
|
|||
// Some examples that probably *could* be accepted, but which we reject for now.
|
||||
|
||||
fn bar() {
|
||||
|| {
|
||||
let b = true;
|
||||
foo(yield, &b);
|
||||
}; //~ ERROR `b` does not live long enough
|
||||
|| {
|
||||
let b = true;
|
||||
foo(yield, &b);
|
||||
}; //~ ERROR `b` does not live long enough
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@
|
|||
fn foo(_b: &bool, _a: ()) {}
|
||||
|
||||
fn main() {
|
||||
|| {
|
||||
let b = true;
|
||||
foo(&b, yield);
|
||||
}; //~ ERROR `b` does not live long enough
|
||||
|| {
|
||||
let b = true;
|
||||
foo(&b, yield);
|
||||
}; //~ ERROR `b` does not live long enough
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue