lint based on closure pipe span
This commit is contained in:
parent
4ec0ba9545
commit
052bdff8fb
2 changed files with 17 additions and 1 deletions
|
|
@ -22,6 +22,8 @@ fn main() {
|
|||
//~^ ERROR closure is expected to take
|
||||
f(|| panic!());
|
||||
//~^ ERROR closure is expected to take
|
||||
f(move || panic!());
|
||||
//~^ ERROR closure is expected to take
|
||||
|
||||
let _it = vec![1, 2, 3].into_iter().enumerate().map(|i, x| i);
|
||||
//~^ ERROR closure is expected to take
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue