@@ -9,7 +9,7 @@ LL | call(foo);
9
9
|
10
10
= help: the trait `std::ops::Fn<()>` is not implemented for `fn() {foo}`
11
11
= note: wrap the `fn() {foo}` in a closure with no arguments: `|| { /* code */ }
12
- = note: `fn() {foo}` has ` #[target_feature]` and is unsafe to call
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}`
15
15
--> $DIR/fn-traits.rs:25:14
@@ -22,7 +22,7 @@ LL | call_mut(foo);
22
22
|
23
23
= help: the trait `std::ops::FnMut<()>` is not implemented for `fn() {foo}`
24
24
= note: wrap the `fn() {foo}` in a closure with no arguments: `|| { /* code */ }
25
- = note: `fn() {foo}` has ` #[target_feature]` and is unsafe to call
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}`
28
28
--> $DIR/fn-traits.rs:26:15
@@ -35,7 +35,7 @@ LL | call_once(foo);
35
35
|
36
36
= help: the trait `std::ops::FnOnce<()>` is not implemented for `fn() {foo}`
37
37
= note: wrap the `fn() {foo}` in a closure with no arguments: `|| { /* code */ }
38
- = note: `fn() {foo}` has ` #[target_feature]` and is unsafe to call
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}`
41
41
--> $DIR/fn-traits.rs:28:10
@@ -48,7 +48,7 @@ LL | call(foo_unsafe);
48
48
|
49
49
= help: the trait `std::ops::Fn<()>` is not implemented for `unsafe fn() {foo_unsafe}`
50
50
= note: wrap the `unsafe fn() {foo_unsafe}` in a closure with no arguments: `|| { /* code */ }
51
- = note: `unsafe fn() {foo_unsafe}` has ` #[target_feature]` and is unsafe to call
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}`
54
54
--> $DIR/fn-traits.rs:30:14
@@ -61,7 +61,7 @@ LL | call_mut(foo_unsafe);
61
61
|
62
62
= help: the trait `std::ops::FnMut<()>` is not implemented for `unsafe fn() {foo_unsafe}`
63
63
= note: wrap the `unsafe fn() {foo_unsafe}` in a closure with no arguments: `|| { /* code */ }
64
- = note: `unsafe fn() {foo_unsafe}` has ` #[target_feature]` and is unsafe to call
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}`
67
67
--> $DIR/fn-traits.rs:32:15
@@ -74,7 +74,7 @@ LL | call_once(foo_unsafe);
74
74
|
75
75
= help: the trait `std::ops::FnOnce<()>` is not implemented for `unsafe fn() {foo_unsafe}`
76
76
= note: wrap the `unsafe fn() {foo_unsafe}` in a closure with no arguments: `|| { /* code */ }
77
- = note: `unsafe fn() {foo_unsafe}` has ` #[target_feature]` and is unsafe to call
77
+ = note: `#[target_feature]` functions do not implement the `Fn` traits
78
78
79
79
error: aborting due to 6 previous errors
80
80
0 commit comments