]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2627-raw-dylib/link-ordinal-unsupported-link-kind.rs
Rollup merge of #100200 - petrochenkov:zgccld2, r=lqd,Mark-Simulacrum
[rust.git] / src / test / ui / rfc-2627-raw-dylib / link-ordinal-unsupported-link-kind.rs
1 #![feature(raw_dylib)]
2 //~^ WARN the feature `raw_dylib` is incomplete
3
4 #[link(name = "foo")]
5 extern "C" {
6     #[link_ordinal(3)]
7     //~^ ERROR `#[link_ordinal]` is only supported if link kind is `raw-dylib`
8     fn foo();
9 }
10
11 #[link(name = "bar", kind = "static")]
12 extern "C" {
13     #[link_ordinal(3)]
14     //~^ ERROR `#[link_ordinal]` is only supported if link kind is `raw-dylib`
15     fn bar();
16 }
17
18 fn main() {}