2011-08-17 16:58:00 -07:00
|
|
|
// error-pattern: Unsatisfied precondition constraint
|
2011-08-19 15:16:48 -07:00
|
|
|
fn send<~T>(ch: _chan<T>, data: -T) { log ch; log data; fail; }
|
2011-08-17 16:58:00 -07: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 15:16:48 -07:00
|
|
|
fn main() { fail; }
|