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

11 lines
119 B
Rust
Raw Normal View History

2011-06-14 15:11:35 -07:00
// error-pattern: base type for expr_field
2010-06-23 21:03:09 -07:00
obj x() {
fn hello() {
log "hello";
}
}
fn main() {
x.hello();
}