(s: &[f64])
| 2 | None, Some(4.3)*/ |
| 3 | fn main() { |
| 4 | fn get_third(s: &[f64]) -> Option<f64> { |
| 5 | if s.len() >= 3 { |
| 6 | Some(s[2]) |
| 7 | } else { |
| 8 | None |
| 9 | } |
| 10 | } |
| 11 | print!("{:?}, {:?}", |
| 12 | get_third(&[3.1, 3.2]), |
| 13 | get_third(&[4.1, 4.2, 4.3, 4.4])); |
nothing calls this directly
no outgoing calls
no test coverage detected