]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/c-static-dylib/foo.rs
Rollup merge of #100509 - BoxyUwU:merge_hrtb_with_higher_rank_trait_bound, r=compiler...
[rust.git] / src / test / run-make-fulldeps / c-static-dylib / foo.rs
1 #![crate_type = "dylib"]
2
3 #[link(name = "cfoo", kind = "static")]
4 extern "C" {
5     fn foo();
6 }
7
8 pub fn rsfoo() {
9     unsafe { foo() }
10 }