Skip to content

Confusing error message when same-named field and method both in scope #2327

Closed
@brson

Description

@brson
/home/brian/dev/rust/src/test/run-pass/act.rs:178:18: 178:29 error: mismatched types: expected function or native function but found @mut bool
/home/brian/dev/rust/src/test/run-pass/act.rs:178               _ { msg.defer() }

I had both a field and a method called defer. rustc should say that both are defined and show me where.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions