1 pub fn foo(params: Option<&[&str]>) -> usize {
2 params.unwrap().first().unwrap().len()
9 //~^ ERROR mismatched types
10 //~| expected enum `std::option::Option<&[&str]>`
11 //~| found enum `std::option::Option<&[&str; 1]>`
12 //~| expected slice, found array of 1 element