]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-unboxed-closures-manual-impls.stderr
Tweak errors for missing associated types and type parameters
[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
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    = help: use parenthetical notation instead: `Fn(Foo, Bar) -> Baz`
46
47 error[E0229]: associated type bindings are not allowed here
48   --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:15:6
49    |
50 LL | impl FnOnce() for Foo1 {
51    |      ^^^^^^^^ associated type not allowed here
52
53 error[E0658]: the precise format of `Fn`-family traits' type parameters is subject to change
54   --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:21:6
55    |
56 LL | impl FnMut<()> for Bar {
57    |      ^^^^^^^^^
58    |
59    = note: for more information, see https://github.com/rust-lang/rust/issues/29625
60    = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
61    = help: use parenthetical notation instead: `Fn(Foo, Bar) -> Baz`
62
63 error[E0658]: the precise format of `Fn`-family traits' type parameters is subject to change
64   --> $DIR/feature-gate-unboxed-closures-manual-impls.rs:27:6
65    |
66 LL | impl FnOnce<()> for Baz {
67    |      ^^^^^^^^^^
68    |
69    = note: for more information, see https://github.com/rust-lang/rust/issues/29625
70    = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
71    = help: use parenthetical notation instead: `Fn(Foo, Bar) -> Baz`
72
73 error: aborting due to 8 previous errors
74
75 Some errors have detailed explanations: E0229, E0658.
76 For more information about an error, try `rustc --explain E0229`.