2012-02-10 17:34:23 -06:00
|
|
|
crust fn f() {
|
|
|
|
}
|
|
|
|
|
2012-02-10 19:46:53 -06:00
|
|
|
crust fn g() {
|
|
|
|
}
|
|
|
|
|
2012-02-10 17:34:23 -06:00
|
|
|
fn main() {
|
|
|
|
// Crust functions are *u8 types
|
2012-02-10 19:46:53 -06:00
|
|
|
let a: *u8 = f;
|
|
|
|
let b: *u8 = f;
|
|
|
|
let c: *u8 = g;
|
|
|
|
|
|
|
|
assert a == b;
|
|
|
|
assert a != c;
|
|
|
|
}
|