1 // Test that, if an item is annotated with a builtin attribute more than once, a warning is
3 // Tests https://github.com/rust-lang/rust/issues/90979
6 // compile-flags: --test
13 //~^ WARNING duplicated attribute
16 // The following shouldn't trigger an error. The attribute is not duplicated.
20 // The following shouldn't trigger an error either. The second attribute is not #[test].
30 //~^ WARNING duplicated attribute
31 fn f4(_: &mut Bencher) {}
35 //~^ WARNING duplicated attribute