Skip to content

Unused check for template function #4086

@sakupan102

Description

@sakupan102

Summary

The current unused variable pass does not check variables inside the template function.

Reproducer

I tried this code:

#[lang = "sized"]
pub trait Sized {}

fn test<T> (a: usize) -> () {
}

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