You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fnmain(){let x = "hello world";let y = ['h','e'];println!("{:?}", x.find(&y));}
will not compile with “error: the trait core::ops::Fn<(char,)> is not implemented for the type [char; 2]”, but there’s impl<'a, 'b> Pattern<'a> for &'b [char], which could’ve been used if coercion happened.
The text was updated successfully, but these errors were encountered:
will not compile with “error: the trait
core::ops::Fn<(char,)>
is not implemented for the type[char; 2]
”, but there’simpl<'a, 'b> Pattern<'a> for &'b [char]
, which could’ve been used if coercion happened.The text was updated successfully, but these errors were encountered: