Skip to content

Incorrect attribute arguments are silently ignored #29000

@wthrowe

Description

@wthrowe

This test compiles with no warnings and passes.

#[test]
#[should_panic(exepcted = "foo")]
fn foo() {
    panic!("bar");
}

I would expect at least a warning that "exepcted" was unused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions