/src/test/run-fail/unwind-box-trait.rs
Rust | 19 lines | 14 code | 4 blank | 1 comment | 0 complexity | 7ea351417d237c1ea1f04220e044196e MD5 | raw file
- // error-pattern:fail
- fn failfn() {
- fail;
- }
- trait i {
- fn foo();
- }
- impl ~int: i {
- fn foo() { }
- }
- fn main() {
- let x = ~0 as i;
- failfn();
- log(error, x);
- }