aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/ty/tests.rs')
-rw-r--r--crates/ra_hir/src/ty/tests.rs12
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
2623trait Send {} 2623trait SendX {}
2624 2624
2625struct S1; impl Send for S1; 2625struct S1; impl SendX for S1;
2626struct S2; impl Send for S2; 2626struct S2; impl SendX for S2;
2627struct U1; 2627struct U1;
2628 2628
2629trait Trait { fn method(self); } 2629trait Trait { fn method(self); }
2630 2630
2631struct X1<A, B> {} 2631struct X1<A, B> {}
2632impl<A, B> Send for X1<A, B> where A: Send, B: Send {} 2632impl<A, B> SendX for X1<A, B> where A: SendX, B: SendX {}
2633 2633
2634struct S<B, C> {} 2634struct S<B, C> {}
2635 2635
2636trait Fn {} 2636trait FnX {}
2637 2637
2638impl<B, C> Trait for S<B, C> where C: Fn, B: Send {} 2638impl<B, C> Trait for S<B, C> where C: FnX, B: SendX {}
2639 2639
2640fn test() { (S {}).method()<|>; } 2640fn test() { (S {}).method()<|>; }
2641"#, 2641"#,