mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
20 lines
305 B
Rust
20 lines
305 B
Rust
#![feature(no_core, lang_items)]
|
|
#![no_std]
|
|
#![no_core]
|
|
#![crate_type = "lib"]
|
|
|
|
// This is needed because of #![no_core]:
|
|
#[lang = "sized"]
|
|
trait Sized {}
|
|
|
|
#[link(name = "extern_1", kind = "raw-dylib")]
|
|
extern {
|
|
fn extern_fn();
|
|
}
|
|
|
|
pub fn extern_fn_caller() {
|
|
unsafe {
|
|
extern_fn();
|
|
}
|
|
}
|