aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-10-30 19:35:01 +0000
committerFlorian Diebold <[email protected]>2019-11-01 18:57:08 +0000
commit44279ef1df49585d0b151dcfb5cefade012dbc7a (patch)
treec1951ab934c9b96698c09f0dc2b4bb8f8534fc35 /crates
parentb634ba41e0439cbbb89b12a3d340c8463b35b93e (diff)
Add another unrelated, currently not working test
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_hir/src/ty/tests.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs
index 7183b205c..3af926279 100644
--- a/crates/ra_hir/src/ty/tests.rs
+++ b/crates/ra_hir/src/ty/tests.rs
@@ -3450,6 +3450,22 @@ fn test() { S.foo()<|>; }
3450 assert_eq!(t, "u128"); 3450 assert_eq!(t, "u128");
3451} 3451}
3452 3452
3453#[ignore]
3454#[test]
3455fn method_resolution_by_value_before_autoref() {
3456 let t = type_at(
3457 r#"
3458//- /main.rs
3459trait Clone { fn clone(&self) -> Self; }
3460struct S;
3461impl Clone for S {}
3462impl Clone for &S {}
3463fn test() { (S.clone(), (&S).clone(), (&&S).clone())<|>; }
3464"#,
3465 );
3466 assert_eq!(t, "(S, S, &S)");
3467}
3468
3453#[test] 3469#[test]
3454fn method_resolution_trait_before_autoderef() { 3470fn method_resolution_trait_before_autoderef() {
3455 let t = type_at( 3471 let t = type_at(