summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rfc-2627-raw-dylib/link-ordinal-too-many-arguments.rs
blob: 93286c616c5ac55ada64fc3ddc75dbf3cb5e58fc (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(raw_dylib)]
//~^ WARN the feature `raw_dylib` is incomplete

#[link(name = "foo")]
extern "C" {
    #[link_ordinal(3, 4)]
    //~^ ERROR incorrect number of arguments to `#[link_ordinal]`
    fn foo();
}

fn main() {}