Skip to content
This repository was archived by the owner on Jun 7, 2022. It is now read-only.
This repository was archived by the owner on Jun 7, 2022. It is now read-only.

Compilation error: parenthesized type parameters may only be used with a Fn trait #1

Description

@koutheir

Building a release on amd64 results in a compilation error:

$ cargo build --release
[...]
error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
  --> $HOME/.cargo/registry/src/github.com-1ecc6299db9ec823/encoding_rs-0.6.11/src/utf_16.rs:33:44
   |
33 |     pub fn additional_from_state(&self) -> usize() {
   |                                            ^^^^^^^ only `Fn` traits may use parentheses

error: aborting due to previous error

For more information about this error, try `rustc --explain E0214`.
error: could not compile `encoding_rs`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

Updating the dependencies of the project might resolve this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions