Skip to content

Don't show dead code warnings for functions local to dead code #11429

Closed
@jorgeadriano

Description

@jorgeadriano

At the moment the following code triggers dead code warnings for both f and g. The latter is unnecessary.

fn f(){
   fn g(){};
   g();
}

rust version 0.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions