rust/tests/ui/lint/linker-warning.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
204 B
Rust
Raw Normal View History

//@ check-pass
#![crate_type = "lib"]
#![warn(unused_attributes)]
#![allow(linker_messages)]
//~^ WARNING unused attribute
#[allow(linker_messages)]
//~^ WARNING should be an inner attribute
fn foo() {}