2012-05-19 07:52:01 -05:00
|
|
|
fn foo(v: [int]) : vec::is_empty(v) { #debug("%d", v[0]); }
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let f = fn@() {
|
2012-06-25 22:00:46 -05:00
|
|
|
let v = [1]/~;
|
2012-05-19 07:52:01 -05:00
|
|
|
foo(v); //! ERROR unsatisfied precondition constraint
|
|
|
|
}();
|
|
|
|
log(error, f);
|
|
|
|
}
|