]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-23024.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-23024.stderr
1 error[E0658]: the precise format of `Fn`-family traits' type parameters is subject to change
2   --> $DIR/issue-23024.rs:8:39
3    |
4 LL |     println!("{:?}",(vfnfer[0] as dyn Fn)(3));
5    |                                       ^^ help: use parenthetical notation instead: `Fn() -> ()`
6    |
7    = note: see issue #29625 <https://github.com/rust-lang/rust/issues/29625> for more information
8    = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
9
10 error[E0107]: missing generics for trait `Fn`
11   --> $DIR/issue-23024.rs:8:39
12    |
13 LL |     println!("{:?}",(vfnfer[0] as dyn Fn)(3));
14    |                                       ^^ expected 1 generic argument
15    |
16 note: trait defined here, with 1 generic parameter: `Args`
17   --> $SRC_DIR/core/src/ops/function.rs:LL:COL
18    |
19 LL | pub trait Fn<Args>: FnMut<Args> {
20    |           ^^ ----
21 help: add missing generic argument
22    |
23 LL |     println!("{:?}",(vfnfer[0] as dyn Fn<Args>)(3));
24    |                                       ~~~~~~~~
25
26 error[E0191]: the value of the associated type `Output` (from trait `FnOnce`) must be specified
27   --> $DIR/issue-23024.rs:8:39
28    |
29 LL |     println!("{:?}",(vfnfer[0] as dyn Fn)(3));
30    |                                       ^^ help: specify the associated type: `Fn<Output = Type>`
31
32 error: aborting due to 3 previous errors
33
34 Some errors have detailed explanations: E0107, E0191, E0658.
35 For more information about an error, try `rustc --explain E0107`.