None => "(none)",
Some(ref s) => {
let s: &'a str = s;
- s
- //~^ ERROR cannot infer an appropriate lifetime
+ s //~ ERROR E0312
}
}
}
match *maybestr {
Some(ref s) => {
let s: &'a str = s;
- s
- //~^ ERROR cannot infer an appropriate lifetime
+ s //~ ERROR E0312
}
None => "(none)",
}