16 lines
189 B
Rust
16 lines
189 B
Rust
extern fn f() {
|
|
}
|
|
|
|
extern fn g() {
|
|
}
|
|
|
|
fn main() {
|
|
// extern functions are *u8 types
|
|
let a: *u8 = f;
|
|
let b: *u8 = f;
|
|
let c: *u8 = g;
|
|
|
|
assert a == b;
|
|
assert a != c;
|
|
}
|