]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-unboxed-closures-manual-impls.stderr
Rollup merge of #66182 - RalfJung:invalid-value, r=Centril
[rust.git] / src / test / ui / feature-gates / feature-gate-unboxed-closures-manual-impls.stderr
1 error[E0658]: rust-call ABI is subject to change
2   --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:11:12
3    |
4 LL |     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
10 error[E0658]: rust-call ABI is subject to change
11   --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:17:12
12    |
13 LL |     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
19 error[E0658]: rust-call ABI is subject to change
20   --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:23:12
21    |
22 LL |     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
28 error[E0658]: rust-call ABI is subject to change
29   --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:29:12
30    |
31 LL |     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
37 error[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    |
40 LL | 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
46 error[E0229]: associated type bindings are not allowed here
47   --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:15:6
48    |
49 LL | impl FnOnce() for Foo1 {
50    |      ^^^^^^^^ associated type not allowed here
51
52 error[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    |
55 LL | 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
61 error[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    |
64 LL | 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
70 error: aborting due to 8 previous errors
71
72 Some errors have detailed explanations: E0229, E0658.
73 For more information about an error, try `rustc --explain E0229`.