rollup merge of #18409 : gamazeps/issue15273
This commit is contained in:
commit
ce63fbc7bd
3 changed files with 15 additions and 4 deletions
|
|
@ -13,7 +13,9 @@ fn foo() {}
|
|||
fn main() {
|
||||
let f = foo;
|
||||
let f_closure: || = f;
|
||||
//~^ ERROR: cannot coerce non-statically resolved bare fn
|
||||
//~^ ERROR: cannot coerce non-statically resolved bare fn to closure
|
||||
//~^ HELP: consider embedding the function in a closure
|
||||
let f_proc: proc() = f;
|
||||
//~^ ERROR: cannot coerce non-statically resolved bare fn
|
||||
//~^ ERROR: cannot coerce non-statically resolved bare fn to closure
|
||||
//~^ HELP: consider embedding the function in a closure
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue