2019-12-12 14:48:46 -08:00
|
|
|
error[E0658]: the precise format of `Fn`-family traits' type parameters is subject to change
|
2019-05-28 14:46:13 -04:00
|
|
|
--> $DIR/unboxed-closure-sugar-not-used-on-fn.rs:3:17
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-05-28 14:46:13 -04:00
|
|
|
LL | fn bar1(x: &dyn Fn<(), Output=()>) {
|
2019-12-13 08:22:58 -08:00
|
|
|
| ^^ help: use parenthetical notation instead: `Fn() -> ()`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-04-11 11:42:06 -07:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/29625
|
2019-07-09 11:32:08 +02:00
|
|
|
= help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2019-12-12 14:48:46 -08:00
|
|
|
error[E0658]: the precise format of `Fn`-family traits' type parameters is subject to change
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/unboxed-closure-sugar-not-used-on-fn.rs:7:28
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | fn bar2<T>(x: &T) where T: Fn<()> {
|
2019-12-13 08:22:58 -08:00
|
|
|
| ^^ help: use parenthetical notation instead: `Fn() -> ()`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-04-11 11:42:06 -07:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/29625
|
2019-07-09 11:32:08 +02:00
|
|
|
= help: add `#![feature(unboxed_closures)]` to the crate attributes to enable
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|