rust/src/test/run-pass/use-trait-before-def.rs

5 lines
100 B
Rust
Raw Normal View History

// Issue #1761
2012-08-07 18:10:06 -07:00
impl int: foo { fn foo() -> int { 10 } }
trait foo { fn foo() -> int; }
fn main() {}