about summary refs log tree commit diff
path: root/tests/ui/lint/linker-warning.rs
blob: 10e3f56ab9590847eefbe1e28ad11f999332ed94 (plain)
1
2
3
4
5
6
7
8
9
//@ 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() {}