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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
1.0 KiB
Plaintext
Raw Normal View History

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