mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
26 lines
346 B
Rust
26 lines
346 B
Rust
#![allow(dead_code)]
|
|
|
|
#[inline]
|
|
fn f() {}
|
|
|
|
#[inline] //~ ERROR: attribute should be applied to function or closure
|
|
struct S;
|
|
|
|
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 {
|
|
() => {};
|
|
}
|
|
|
|
fn main() {}
|