]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-23024.stderr
Rollup merge of #107091 - clubby789:infer-ftl-missing-dollar, r=compiler-errors
[rust.git] / tests / 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 help: add missing generic argument
17    |
18 LL |     println!("{:?}",(vfnfer[0] as dyn Fn<Args>)(3));
19    |                                         ++++++
20
21 error[E0191]: the value of the associated type `Output` (from trait `FnOnce`) must be specified
22   --> $DIR/issue-23024.rs:8:39
23    |
24 LL |     println!("{:?}",(vfnfer[0] as dyn Fn)(3));
25    |                                       ^^ help: specify the associated type: `Fn<Output = Type>`
26
27 error: aborting due to 3 previous errors
28
29 Some errors have detailed explanations: E0107, E0191, E0658.
30 For more information about an error, try `rustc --explain E0107`.