Skip to content

Warn or error on path statements #400

Closed
@brson

Description

@brson

This is pretty useless and error prone:

fn do_something_important() {
}

fn main() {
  do_something_important;
}

It's just mentioning a function, when the user probably wanted to call it. Note that it's not useless when leaving off the semi.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions