PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/compile-fail/not-a-pred.rs

http://github.com/jruderman/rust
Rust | 8 lines | 3 code | 3 blank | 2 comment | 0 complexity | 210725d98efd65c9b8cae3e33f7fc068 MD5 | raw file
1// -*- rust -*-
2// error-pattern: lt
3
4fn f(a: int, b: int) : lt(a, b) { }
5
6fn lt(a: int, b: int) { }
7
8fn main() { let a: int = 10; let b: int = 23; check (lt(a, b)); f(a, b); }