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