Skip to content

Lint for functions that don't return but aren't written as "-> !" #12836

Closed
@jruderman

Description

@jruderman

I think this should warn: f never returns, but it claims to return int.

fn f() -> int {
  fail!("f")
}

fn main() {
  f();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions