]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-23024.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[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. Use parenthetical notation (Fn(Foo, Bar) -> Baz) instead (see issue #29625)
2   --> $DIR/issue-23024.rs:19:35
3    |
4 LL |     println!("{:?}",(vfnfer[0] as Fn)(3));
5    |                                   ^^
6    |
7    = help: add #![feature(unboxed_closures)] to the crate attributes to enable
8
9 error[E0107]: wrong number of type arguments: expected 1, found 0
10   --> $DIR/issue-23024.rs:19:35
11    |
12 LL |     println!("{:?}",(vfnfer[0] as Fn)(3));
13    |                                   ^^ expected 1 type argument
14
15 error[E0191]: the value of the associated type `Output` (from the trait `std::ops::FnOnce`) must be specified
16   --> $DIR/issue-23024.rs:19:35
17    |
18 LL |     println!("{:?}",(vfnfer[0] as Fn)(3));
19    |                                   ^^ missing associated type `Output` value
20
21 error: aborting due to 3 previous errors
22
23 Some errors occurred: E0107, E0191, E0658.
24 For more information about an error, try `rustc --explain E0107`.