Bless tests, add comments
This commit is contained in:
parent
427896dd7e
commit
881b6b5149
28 changed files with 202 additions and 127 deletions
|
@ -4,7 +4,8 @@
|
|||
fn foo() -> Box<dyn std::future::Future<Output = u32>> {
|
||||
let x = 0u32;
|
||||
Box::new((async || x)())
|
||||
//~^ ERROR closure may outlive the current function, but it borrows `x`, which is owned by the current function
|
||||
//~^ ERROR cannot return value referencing local variable `x`
|
||||
//~| ERROR cannot return value referencing temporary value
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue