rust/src/test/run-pass/use-trait-before-def.rs
2012-08-08 18:19:24 -07:00

5 lines
100 B
Rust

// Issue #1761
impl int: foo { fn foo() -> int { 10 } }
trait foo { fn foo() -> int; }
fn main() {}