@@ -8,7 +8,7 @@ LL | call(foo);
8
8
| ^^^ expected an `Fn<()>` closure, found `fn() {foo}`
9
9
|
10
10
= help: the trait `std::ops::Fn<()>` is not implemented for `fn() {foo}`
11
- = note: wrap the `fn() {foo}` in a closure with no arguments: `|| { /* code */ }
11
+ = note: wrap the `fn() {foo}` in a closure with no arguments: `|| { /* code */ }`
12
12
= note: `#[target_feature]` functions do not implement the `Fn` traits
13
13
14
14
error[E0277]: expected a `std::ops::FnMut<()>` closure, found `fn() {foo}`
@@ -21,7 +21,7 @@ LL | call_mut(foo);
21
21
| ^^^ expected an `FnMut<()>` closure, found `fn() {foo}`
22
22
|
23
23
= help: the trait `std::ops::FnMut<()>` is not implemented for `fn() {foo}`
24
- = note: wrap the `fn() {foo}` in a closure with no arguments: `|| { /* code */ }
24
+ = note: wrap the `fn() {foo}` in a closure with no arguments: `|| { /* code */ }`
25
25
= note: `#[target_feature]` functions do not implement the `Fn` traits
26
26
27
27
error[E0277]: expected a `std::ops::FnOnce<()>` closure, found `fn() {foo}`
@@ -34,7 +34,7 @@ LL | call_once(foo);
34
34
| ^^^ expected an `FnOnce<()>` closure, found `fn() {foo}`
35
35
|
36
36
= help: the trait `std::ops::FnOnce<()>` is not implemented for `fn() {foo}`
37
- = note: wrap the `fn() {foo}` in a closure with no arguments: `|| { /* code */ }
37
+ = note: wrap the `fn() {foo}` in a closure with no arguments: `|| { /* code */ }`
38
38
= note: `#[target_feature]` functions do not implement the `Fn` traits
39
39
40
40
error[E0277]: expected a `std::ops::Fn<()>` closure, found `unsafe fn() {foo_unsafe}`
@@ -47,7 +47,7 @@ LL | call(foo_unsafe);
47
47
| ^^^^^^^^^^ expected an `Fn<()>` closure, found `unsafe fn() {foo_unsafe}`
48
48
|
49
49
= help: the trait `std::ops::Fn<()>` is not implemented for `unsafe fn() {foo_unsafe}`
50
- = note: wrap the `unsafe fn() {foo_unsafe}` in a closure with no arguments: `|| { /* code */ }
50
+ = note: wrap the `unsafe fn() {foo_unsafe}` in a closure with no arguments: `|| { /* code */ }`
51
51
= note: `#[target_feature]` functions do not implement the `Fn` traits
52
52
53
53
error[E0277]: expected a `std::ops::FnMut<()>` closure, found `unsafe fn() {foo_unsafe}`
@@ -60,7 +60,7 @@ LL | call_mut(foo_unsafe);
60
60
| ^^^^^^^^^^ expected an `FnMut<()>` closure, found `unsafe fn() {foo_unsafe}`
61
61
|
62
62
= help: the trait `std::ops::FnMut<()>` is not implemented for `unsafe fn() {foo_unsafe}`
63
- = note: wrap the `unsafe fn() {foo_unsafe}` in a closure with no arguments: `|| { /* code */ }
63
+ = note: wrap the `unsafe fn() {foo_unsafe}` in a closure with no arguments: `|| { /* code */ }`
64
64
= note: `#[target_feature]` functions do not implement the `Fn` traits
65
65
66
66
error[E0277]: expected a `std::ops::FnOnce<()>` closure, found `unsafe fn() {foo_unsafe}`
@@ -73,7 +73,7 @@ LL | call_once(foo_unsafe);
73
73
| ^^^^^^^^^^ expected an `FnOnce<()>` closure, found `unsafe fn() {foo_unsafe}`
74
74
|
75
75
= help: the trait `std::ops::FnOnce<()>` is not implemented for `unsafe fn() {foo_unsafe}`
76
- = note: wrap the `unsafe fn() {foo_unsafe}` in a closure with no arguments: `|| { /* code */ }
76
+ = note: wrap the `unsafe fn() {foo_unsafe}` in a closure with no arguments: `|| { /* code */ }`
77
77
= note: `#[target_feature]` functions do not implement the `Fn` traits
78
78
79
79
error: aborting due to 6 previous errors
0 commit comments