fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
1.1 KiB25 linesraw
1error[E0658]: the precise format of `Fn`-family traits' type parameters is subject to change
2  --> $DIR/issue-23024.rs:9:39
3   |
4LL |     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
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 trait `std::ops::FnOnce`) must be specified
17  --> $DIR/issue-23024.rs:9:39
18   |
19LL |     println!("{:?}",(vfnfer[0] as dyn Fn)(3));
20   |                                       ^^ help: specify the associated type: `Fn<Output = Type>`
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`.