]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2627-raw-dylib/unsupported-abi.rs
Rollup merge of #95376 - WaffleLapkin:drain_keep_rest, r=dtolnay
[rust.git] / src / test / ui / rfc-2627-raw-dylib / unsupported-abi.rs
1 // only-x86_64
2 // only-windows
3 // compile-flags: --crate-type lib --emit link
4 #![allow(incomplete_features)]
5 #![feature(raw_dylib)]
6 #[link(name = "foo", kind = "raw-dylib")]
7 extern "stdcall" {
8     fn f(x: i32);
9     //~^ ERROR ABI not supported by `#[link(kind = "raw-dylib")]` on this architecture
10 }
11
12 pub fn lib_main() {
13     unsafe { f(42); }
14 }