2011-08-17 18:58:00 -05:00
|
|
|
// error-pattern: Unsatisfied precondition constraint
|
2011-11-18 05:39:20 -06:00
|
|
|
fn send<send T>(ch: _chan<T>, -data: T) { log ch; log data; fail; }
|
2011-08-17 18:58:00 -05:00
|
|
|
type _chan<T> = int;
|
|
|
|
|
|
|
|
// Tests that "log message;" is flagged as using
|
|
|
|
// message after the send deinitializes it
|
|
|
|
fn test00_start(ch: _chan<int>, message: int, count: int) {
|
|
|
|
send(ch, message);
|
|
|
|
log message;
|
|
|
|
}
|
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { fail; }
|