blob: cc81214e2701b8dc7aad42ae247a5a9880bb00a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
fn main() {
let mut args = std::env::args_os();
let _arg = match args.next() {
Some(arg) => {
match arg.to_str() {
//~^ ERROR `arg` does not live long enough
Some(s) => s,
None => return,
}
}
None => return,
};
}
|