Skip to content

Compiler suggests import it already has as well as mislabels issue #53430

Closed
@TheBestJohn

Description

@TheBestJohn

Ran into this trying to connect a diesel db to actix_web. Moodgoodboy on rust-beginners helped in making this MCVE

https://play.rust-lang.org/?gist=0caefd3323a4e74a91c7064e05acd7e9&version=stable&mode=debug

error[E0423]: expected function, found struct 'Executor'

Metadata

Metadata

Assignees

Labels

A-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions