-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
The following code currently does not compile
fn foo<'a>(a: impl Into<Option<&'a [i32]>>) { }
fn main() {
// error[E0277]: the trait bound `Option<&[i32]>: From<&[{integer}; 3]>` is not satisfied
foo(&[1,2,3]);
// error[E0277]: the trait bound `Option<&[i32]>: From<Option<&[{integer}; 3]>>` is not satisfied
foo(Some(&[1,2,3]));
}
Kindly raising this as an issue because something similar was recently merged #113489
Metadata
Metadata
Assignees
Labels
C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.