We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55aee54 commit f7096dbCopy full SHA for f7096db
src/tools/rust-analyzer/crates/ide/src/goto_definition.rs
@@ -3062,6 +3062,30 @@ fn f() {
3062
);
3063
}
3064
3065
+ #[test]
3066
+ fn into_call_to_from_definition_with_trait_bounds() {
3067
+ check(
3068
+ r#"
3069
+//- minicore: from, iterator
3070
+struct A;
3071
+
3072
+impl<T> From<T> for A
3073
+where
3074
+ T: IntoIterator<Item = i64>,
3075
+{
3076
+ fn from(value: T) -> Self {
3077
+ //^^^^
3078
+ A
3079
+ }
3080
+}
3081
3082
+fn f() {
3083
+ let a: A = [1, 2, 3].into$0();
3084
3085
+ "#,
3086
+ );
3087
3088
3089
#[test]
3090
fn goto_into_definition_if_exists() {
3091
check(
0 commit comments