2012-03-05 18:27:27 -06:00
|
|
|
// error-pattern:unsatisfied precondition constraint
|
2012-01-05 08:35:37 -06:00
|
|
|
fn send<T: send>(ch: _chan<T>, -data: T) {
|
2011-12-22 19:53:53 -06:00
|
|
|
log(debug, ch);
|
|
|
|
log(debug, data);
|
2011-12-22 16:42:52 -06:00
|
|
|
fail;
|
|
|
|
}
|
2011-08-17 18:58:00 -05:00
|
|
|
type _chan<T> = int;
|
|
|
|
|
2011-12-22 19:53:53 -06:00
|
|
|
// Tests that "log(debug, message);" is flagged as using
|
2011-08-17 18:58:00 -05:00
|
|
|
// message after the send deinitializes it
|
|
|
|
fn test00_start(ch: _chan<int>, message: int, count: int) {
|
|
|
|
send(ch, message);
|
2011-12-22 19:53:53 -06:00
|
|
|
log(debug, message);
|
2011-08-17 18:58:00 -05:00
|
|
|
}
|
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { fail; }
|