rust/src/test/ui/attr-usage-inline.rs
2018-12-25 21:08:33 -07:00

10 lines
139 B
Rust

#![allow(dead_code)]
#[inline]
fn f() {}
#[inline] //~ ERROR: attribute should be applied to function or closure
struct S;
fn main() {}