1 #![allow(dead_code)]
2 
3 #[inline]
f()4 fn f() {}
5 
6 #[inline] //~ ERROR: attribute should be applied to function or closure
7 struct S;
8 
9 struct I {
10     #[inline]
11     i: u8,
12 }
13 
14 #[macro_export]
15 #[inline]
16 macro_rules! m_e {
17     () => {};
18 }
19 
20 #[inline] //~ ERROR: attribute should be applied to function or closure
21 macro_rules! m {
22     () => {};
23 }
24 
main()25 fn main() {}
26