rust/src/test/compile-fail/direct-obj-fn-call.rs

12 lines
112 B
Rust
Raw Normal View History

2010-06-23 21:03:09 -07:00
// error-pattern: mismatched types
obj x() {
fn hello() {
log "hello";
}
}
fn main() {
x.hello();
}