]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-23024.stderr
Auto merge of #78066 - bugadani:wat, r=jonas-schievink
[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:9: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]: wrong number of type arguments: expected 1, found 0
11   --> $DIR/issue-23024.rs:9:39
12    |
13 LL |     println!("{:?}",(vfnfer[0] as dyn Fn)(3));
14    |                                       ^^ expected 1 type argument
15
16 error[E0191]: the value of the associated type `Output` (from trait `FnOnce`) must be specified
17   --> $DIR/issue-23024.rs:9:39
18    |
19 LL |     println!("{:?}",(vfnfer[0] as dyn Fn)(3));
20    |                                       ^^ help: specify the associated type: `Fn<Output = Type>`
21
22 error: aborting due to 3 previous errors
23
24 Some errors have detailed explanations: E0107, E0191, E0658.
25 For more information about an error, try `rustc --explain E0107`.