2015-09-25 15:25:59 +09:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
#[inline]
|
|
|
|
fn f() {}
|
|
|
|
|
2018-04-27 07:20:46 +02:00
|
|
|
#[inline] //~ ERROR: attribute should be applied to function or closure
|
2015-09-25 15:25:59 +09:00
|
|
|
struct S;
|
|
|
|
|
2021-02-01 23:35:53 +09: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 15:25:59 +09:00
|
|
|
fn main() {}
|