blob: 42685cad9482bb125fe95444caa043c0c151d854 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#![feature(raw_dylib)]
//~^ WARN the feature `raw_dylib` is incomplete
#[link(name="foo")]
extern "C" {
#[link_name="foo"]
#[link_ordinal(42)]
//~^ ERROR cannot use `#[link_name]` with `#[link_ordinal]`
fn foo();
}
fn main() {}
|