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