fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
3.3 KiB73 linesraw
1error[E0658]: rust-call ABI is subject to change
2  --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:11:5
3   |
4LL |     extern "rust-call" fn call(self, args: ()) -> () {}
5   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: for more information, see https://github.com/rust-lang/rust/issues/29625
8   = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
9
10error[E0658]: rust-call ABI is subject to change
11  --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:17:5
12   |
13LL |     extern "rust-call" fn call_once(self, args: ()) -> () {}
14   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15   |
16   = note: for more information, see https://github.com/rust-lang/rust/issues/29625
17   = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
18
19error[E0658]: rust-call ABI is subject to change
20  --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:23:5
21   |
22LL |     extern "rust-call" fn call_mut(&self, args: ()) -> () {}
23   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24   |
25   = note: for more information, see https://github.com/rust-lang/rust/issues/29625
26   = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
27
28error[E0658]: rust-call ABI is subject to change
29  --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:29:5
30   |
31LL |     extern "rust-call" fn call_once(&self, args: ()) -> () {}
32   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33   |
34   = note: for more information, see https://github.com/rust-lang/rust/issues/29625
35   = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
36
37error[E0658]: the precise format of `Fn`-family traits' type parameters is subject to change. Use parenthetical notation (Fn(Foo, Bar) -> Baz) instead
38  --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:9:6
39   |
40LL | impl Fn<()> for Foo {
41   |      ^^^^^^
42   |
43   = note: for more information, see https://github.com/rust-lang/rust/issues/29625
44   = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
45
46error[E0229]: associated type bindings are not allowed here
47  --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:15:6
48   |
49LL | impl FnOnce() for Foo1 {
50   |      ^^^^^^^^ associated type not allowed here
51
52error[E0658]: the precise format of `Fn`-family traits' type parameters is subject to change. Use parenthetical notation (Fn(Foo, Bar) -> Baz) instead
53  --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:21:6
54   |
55LL | impl FnMut<()> for Bar {
56   |      ^^^^^^^^^
57   |
58   = note: for more information, see https://github.com/rust-lang/rust/issues/29625
59   = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
60
61error[E0658]: the precise format of `Fn`-family traits' type parameters is subject to change. Use parenthetical notation (Fn(Foo, Bar) -> Baz) instead
62  --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:27:6
63   |
64LL | impl FnOnce<()> for Baz {
65   |      ^^^^^^^^^^
66   |
67   = note: for more information, see https://github.com/rust-lang/rust/issues/29625
68   = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
69
70error: aborting due to 8 previous errors
71
72Some errors have detailed explanations: E0229, E0658.
73For more information about an error, try `rustc --explain E0229`.