rust/src/test/ui/unboxed-closures/unboxed-closure-sugar-not-used-on-fn.stderr

22 lines
1.0 KiB
Plaintext
Raw Normal View History

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