fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/issue-15783.rs:8:19 3 | 4LL | let msg = foo(x); 5 | --- ^ expected `Option<&[&str]>`, found `Option<&[&str; 1]>` 6 | | 7 | arguments to this function are incorrect 8 | 9 = note: expected enum `Option<&[&str]>` 10 found enum `Option<&[&str; 1]>` 11note: function defined here 12 --> $DIR/issue-15783.rs:1:8 13 | 14LL | pub fn foo(params: Option<&[&str]>) -> usize { 15 | ^^^ ----------------------- 16 17error: aborting due to previous error 18 19For more information about this error, try `rustc --explain E0308`.