blob: 57d33c965b0be81b5cbef24d942535d74b125e3a (
plain)
1
2
3
4
5
6
7
8
9
10
|
// error-pattern:explicit failure
// Don't double free the string
extern mod std;
use io::ReaderUtil;
fn main() {
do io::with_str_reader(~"") |rdr| {
match rdr.read_char() { '=' => { } _ => { fail } }
}
}
|