Hello everyone,
I might have found a bug. Ubuntu 12.04 LTS, rust master pulled a few hours
ago.
I've isolated my problem down to the following:
fn main() {
let arr : ~[&str] = std::os::args()[1].split_str("::").collect();
std::io::println("first " + arr[0]);
std::io::println("first again " + arr[0]);
}
$ rustc isolate_issue.rs
$ ./isolate_issue "foo::bar"
first fir
first again <non ascii char>
It looks like pointer corruption somewhere. Can somebody explain to me what
is going on?
Many thanks,
Phil
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev