fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
1.1 KiB25 linesraw
1error[E0658]: the precise format of `Fn`-family traits' type parameters is subject to change. Use parenthetical notation (Fn(Foo, Bar) -> Baz) instead
2  --> $DIR/issue-23024.rs:9:39
3   |
4LL |     println!("{:?}",(vfnfer[0] as dyn Fn)(3));
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
10error[E0107]: wrong number of type arguments: expected 1, found 0
11  --> $DIR/issue-23024.rs:9:39
12   |
13LL |     println!("{:?}",(vfnfer[0] as dyn Fn)(3));
14   |                                       ^^ expected 1 type argument
15
16error[E0191]: the value of the associated type `Output` (from the trait `std::ops::FnOnce`) must be specified
17  --> $DIR/issue-23024.rs:9:35
18   |
19LL |     println!("{:?}",(vfnfer[0] as dyn Fn)(3));
20   |                                   ^^^^^^ associated type `Output` must be specified
21
22error: aborting due to 3 previous errors
23
24Some errors have detailed explanations: E0107, E0191, E0658.
25For more information about an error, try `rustc --explain E0107`.