1
1
error[E0658]: rust-call ABI is subject to change
2
- --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:11 :12
2
+ --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:12 :12
3
3
|
4
4
LL | extern "rust-call" fn call(self, args: ()) -> () {}
5
5
| ^^^^^^^^^^^
@@ -8,7 +8,7 @@ LL | extern "rust-call" fn call(self, args: ()) -> () {}
8
8
= help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
9
9
10
10
error[E0658]: rust-call ABI is subject to change
11
- --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:17 :12
11
+ --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:19 :12
12
12
|
13
13
LL | extern "rust-call" fn call_once(self, args: ()) -> () {}
14
14
| ^^^^^^^^^^^
@@ -17,7 +17,7 @@ LL | extern "rust-call" fn call_once(self, args: ()) -> () {}
17
17
= help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
18
18
19
19
error[E0658]: rust-call ABI is subject to change
20
- --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:23 :12
20
+ --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:26 :12
21
21
|
22
22
LL | extern "rust-call" fn call_mut(&self, args: ()) -> () {}
23
23
| ^^^^^^^^^^^
@@ -26,7 +26,7 @@ LL | extern "rust-call" fn call_mut(&self, args: ()) -> () {}
26
26
= help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
27
27
28
28
error[E0658]: rust-call ABI is subject to change
29
- --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:29 :12
29
+ --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:33 :12
30
30
|
31
31
LL | extern "rust-call" fn call_once(&self, args: ()) -> () {}
32
32
| ^^^^^^^^^^^
@@ -44,13 +44,13 @@ LL | impl Fn<()> for Foo {
44
44
= help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
45
45
46
46
error[E0229]: associated type bindings are not allowed here
47
- --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:15 :6
47
+ --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:16 :6
48
48
|
49
49
LL | impl FnOnce() for Foo1 {
50
50
| ^^^^^^^^ associated type not allowed here
51
51
52
52
error[E0658]: the precise format of `Fn`-family traits' type parameters is subject to change
53
- --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:21 :6
53
+ --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:23 :6
54
54
|
55
55
LL | impl FnMut<()> for Bar {
56
56
| ^^^^^^^^^ help: use parenthetical notation instead: `FnMut() -> ()`
@@ -59,15 +59,47 @@ LL | impl FnMut<()> for Bar {
59
59
= help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
60
60
61
61
error[E0658]: the precise format of `Fn`-family traits' type parameters is subject to change
62
- --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:27 :6
62
+ --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:30 :6
63
63
|
64
64
LL | impl FnOnce<()> for Baz {
65
65
| ^^^^^^^^^^ help: use parenthetical notation instead: `FnOnce() -> ()`
66
66
|
67
67
= note: see issue #29625 <https://github.com/rust-lang/rust/issues/29625> for more information
68
68
= help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
69
69
70
- error: aborting due to 8 previous errors
70
+ error[E0183]: manual implementations of `Fn` are experimental
71
+ --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:9:1
72
+ |
73
+ LL | impl Fn<()> for Foo {
74
+ | ^^^^^^^^^^^^^^^^^^^ manual implementations of `Fn` are experimental
75
+ |
76
+ = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
77
+
78
+ error[E0183]: manual implementations of `FnMut` are experimental
79
+ --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:23:1
80
+ |
81
+ LL | impl FnMut<()> for Bar {
82
+ | ^^^^^^^^^^^^^^^^^^^^^^ manual implementations of `FnMut` are experimental
83
+ |
84
+ = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
85
+
86
+ error[E0183]: manual implementations of `FnOnce` are experimental
87
+ --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:16:1
88
+ |
89
+ LL | impl FnOnce() for Foo1 {
90
+ | ^^^^^^^^^^^^^^^^^^^^^^ manual implementations of `FnOnce` are experimental
91
+ |
92
+ = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
93
+
94
+ error[E0183]: manual implementations of `FnOnce` are experimental
95
+ --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:30:1
96
+ |
97
+ LL | impl FnOnce<()> for Baz {
98
+ | ^^^^^^^^^^^^^^^^^^^^^^^ manual implementations of `FnOnce` are experimental
99
+ |
100
+ = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
101
+
102
+ error: aborting due to 12 previous errors
71
103
72
104
Some errors have detailed explanations: E0229, E0658.
73
105
For more information about an error, try `rustc --explain E0229`.
0 commit comments