rust/tests/ui/invalid/invalid-inline.rs

15 lines
175 B
Rust

#![allow(dead_code)]
#[inline(please,no)] //~ ERROR expected one argument
fn a() {
}
#[inline()] //~ ERROR expected one argument
fn b() {
}
fn main() {
a();
b();
}