diff options
Diffstat (limited to 'crates/ra_hir/src/ty/tests.rs')
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index 59c85daed..510fa5333 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -2620,22 +2620,22 @@ fn method_resolution_slow() { | |||
2620 | let t = type_at( | 2620 | let t = type_at( |
2621 | r#" | 2621 | r#" |
2622 | //- /main.rs | 2622 | //- /main.rs |
2623 | trait Send {} | 2623 | trait SendX {} |
2624 | 2624 | ||
2625 | struct S1; impl Send for S1; | 2625 | struct S1; impl SendX for S1; |
2626 | struct S2; impl Send for S2; | 2626 | struct S2; impl SendX for S2; |
2627 | struct U1; | 2627 | struct U1; |
2628 | 2628 | ||
2629 | trait Trait { fn method(self); } | 2629 | trait Trait { fn method(self); } |
2630 | 2630 | ||
2631 | struct X1<A, B> {} | 2631 | struct X1<A, B> {} |
2632 | impl<A, B> Send for X1<A, B> where A: Send, B: Send {} | 2632 | impl<A, B> SendX for X1<A, B> where A: SendX, B: SendX {} |
2633 | 2633 | ||
2634 | struct S<B, C> {} | 2634 | struct S<B, C> {} |
2635 | 2635 | ||
2636 | trait Fn {} | 2636 | trait FnX {} |
2637 | 2637 | ||
2638 | impl<B, C> Trait for S<B, C> where C: Fn, B: Send {} | 2638 | impl<B, C> Trait for S<B, C> where C: FnX, B: SendX {} |
2639 | 2639 | ||
2640 | fn test() { (S {}).method()<|>; } | 2640 | fn test() { (S {}).method()<|>; } |
2641 | "#, | 2641 | "#, |