2013-05-24 21:35:29 -05:00
|
|
|
use std::str;
|
|
|
|
|
2013-04-23 15:30:58 -05:00
|
|
|
fn main() {
|
|
|
|
let v = ~"test";
|
2013-06-09 09:44:58 -05:00
|
|
|
let sslice = v.slice(0, v.len());
|
2013-04-30 13:10:21 -05:00
|
|
|
//~^ ERROR borrowed value does not live long enough
|
2013-04-23 15:30:58 -05:00
|
|
|
fail!(sslice);
|
|
|
|
}
|