19 lines
185 B
Rust
19 lines
185 B
Rust
|
// error-pattern:fail
|
||
|
|
||
|
fn failfn() {
|
||
|
fail;
|
||
|
}
|
||
|
|
||
|
iface i {
|
||
|
fn foo();
|
||
|
}
|
||
|
|
||
|
impl of i for ~int {
|
||
|
fn foo() { }
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let x = ~0 as i;
|
||
|
failfn();
|
||
|
log(error, x);
|
||
|
}
|