2015-09-25 01:25:59 -05:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
#[inline]
|
|
|
|
fn f() {}
|
|
|
|
|
2018-04-27 00:20:46 -05:00
|
|
|
#[inline] //~ ERROR: attribute should be applied to function or closure
|
2015-09-25 01:25:59 -05:00
|
|
|
struct S;
|
|
|
|
|
2021-02-01 08:35:53 -06:00
|
|
|
struct I {
|
|
|
|
#[inline]
|
|
|
|
i: u8,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
#[inline]
|
|
|
|
macro_rules! m_e {
|
|
|
|
() => {};
|
|
|
|
}
|
|
|
|
|
|
|
|
#[inline] //~ ERROR: attribute should be applied to function or closure
|
|
|
|
macro_rules! m {
|
|
|
|
() => {};
|
|
|
|
}
|
|
|
|
|
2015-09-25 01:25:59 -05:00
|
|
|
fn main() {}
|