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