Convert to spaces
This commit is contained in:
parent
09a5d319ab
commit
eea290d7fd
@ -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…
Reference in New Issue
Block a user