let x = Some(&[name]);
let msg = foo(x);
//~^ ERROR mismatched types
- //~| expected enum `std::option::Option<&[&str]>`
- //~| found enum `std::option::Option<&[&str; 1]>`
+ //~| expected enum `Option<&[&str]>`
+ //~| found enum `Option<&[&str; 1]>`
//~| expected slice `[&str]`, found array `[&str; 1]`
assert_eq!(msg, 3);
}