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-19 02:30:17 +08:00
#![allow(dead_code)]
#[inline(please,no)] //~ ERROR expected one argument
2022-09-16 22:49:43 +08:00
fn a() {
2015-02-19 02:30:17 +08:00
}
#[inline()] //~ ERROR expected one argument
2022-09-16 22:49:43 +08:00
fn b() {
2015-02-19 02:30:17 +08:00
}
2017-10-31 01:19:31 +08:00
fn main() {
a();
b();
}