summaryrefslogtreecommitdiffstats
path: root/tests/ui/invalid/invalid-inline.rs
blob: 2501b1e23f2f14737c12a963ef5b72345bc63749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![allow(dead_code)]

#[inline(please,no)] //~ ERROR expected one argument
fn a() {
}

#[inline()] //~ ERROR expected one argument
fn b() {
}

fn main() {
    a();
    b();
}