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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
175 B
Rust
Raw Normal View History

2015-02-18 12:30:17 -06:00
#![allow(dead_code)]
#[inline(please,no)] //~ ERROR expected one argument
2022-09-16 09:49:43 -05:00
fn a() {
2015-02-18 12:30:17 -06:00
}
#[inline()] //~ ERROR expected one argument
2022-09-16 09:49:43 -05:00
fn b() {
2015-02-18 12:30:17 -06:00
}
2017-10-30 12:19:31 -05:00
fn main() {
a();
b();
}