summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2627-raw-dylib/link-ordinal-multiple.rs
blob: 8842cb944045fe6d9c6d5c937a7fb125a274f72f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// only-windows
#[link(name = "foo", kind = "raw-dylib")]
extern "C" {
    #[link_ordinal(1)] //~ ERROR multiple `link_ordinal` attributes
    #[link_ordinal(2)]
    fn foo();
    #[link_ordinal(1)] //~ ERROR multiple `link_ordinal` attributes
    #[link_ordinal(2)]
    static mut imported_variable: i32;
}

fn main() {}