From c2aefd5b95adb9e07919a11cdfcca45de79b5324 Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Thu, 29 Apr 2021 20:21:50 +0200 Subject: Don't look in super traits for ::Assoc This isn't actually how it works, you have to specify the exact trait that has the associated type. Fixes #8686. --- crates/hir_ty/src/tests/regression.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crates/hir_ty/src/tests') diff --git a/crates/hir_ty/src/tests/regression.rs b/crates/hir_ty/src/tests/regression.rs index add12c6db..d14f5c9bb 100644 --- a/crates/hir_ty/src/tests/regression.rs +++ b/crates/hir_ty/src/tests/regression.rs @@ -1039,6 +1039,14 @@ fn test() { } "#, expect![[r#" + 144..152 'residual': R + 365..366 'r': ControlFlow + 395..410 '{ ControlFlow }': ControlFlow + 397..408 'ControlFlow': ControlFlow + 424..482 '{ ...!>); }': () + 430..456 'Contro...sidual': fn from_residual, ControlFlow>(ControlFlow) -> ControlFlow + 430..479 'Contro...2, !>)': ControlFlow + 457..478 'Contro...32, !>': ControlFlow "#]], ); } -- cgit v1.2.3