2011-08-17 18:58:00 -05:00
|
|
|
// error-pattern: Unsatisfied precondition constraint
|
2011-12-22 16:42:52 -06:00
|
|
|
fn send<send T>(ch: _chan<T>, -data: T) {
|
|
|
|
log_full(core::debug, ch);
|
|
|
|
log_full(core::debug, data);
|
|
|
|
fail;
|
|
|
|
}
|
2011-08-17 18:58:00 -05:00
|
|
|
type _chan<T> = int;
|
|
|
|
|
2011-12-22 16:42:52 -06:00
|
|
|
// Tests that "log_full(core::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 16:42:52 -06:00
|
|
|
log_full(core::debug, message);
|
2011-08-17 18:58:00 -05:00
|
|
|
}
|
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { fail; }
|