summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2627-raw-dylib/link-ordinal-too-many-arguments.rs
blob: 9988115fd8b0dd032de18f404ad6263d583d3868 (plain)
1
2
3
4
5
6
7
8
9
10
11
#[link(name = "foo")]
extern "C" {
    #[link_ordinal(3, 4)]
    //~^ ERROR incorrect number of arguments to `#[link_ordinal]`
    fn foo();
    #[link_ordinal(3, 4)]
    //~^ ERROR incorrect number of arguments to `#[link_ordinal]`
    static mut imported_variable: i32;
}

fn main() {}