aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty/src/tests
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2020-02-21 18:05:27 +0000
committerFlorian Diebold <[email protected]>2020-02-22 10:09:21 +0000
commit0dfbbaf03b03618dcb7ba203ddc453533bb8d1b4 (patch)
treeef862c881d191030007f6b6ef40ce2250d45c916 /crates/ra_hir_ty/src/tests
parentde39d221a15c0a146ed8adbdb1616692180948bb (diff)
Implement dyn Trait unsizing as well
Diffstat (limited to 'crates/ra_hir_ty/src/tests')
-rw-r--r--crates/ra_hir_ty/src/tests/coercion.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/crates/ra_hir_ty/src/tests/coercion.rs b/crates/ra_hir_ty/src/tests/coercion.rs
index aa2dfb5f0..b6fce9377 100644
--- a/crates/ra_hir_ty/src/tests/coercion.rs
+++ b/crates/ra_hir_ty/src/tests/coercion.rs
@@ -576,7 +576,6 @@ fn test() {
576 ); 576 );
577} 577}
578 578
579#[ignore]
580#[test] 579#[test]
581fn coerce_unsize_trait_object() { 580fn coerce_unsize_trait_object() {
582 assert_snapshot!( 581 assert_snapshot!(
@@ -600,6 +599,13 @@ fn test() {
600} 599}
601"#, true), 600"#, true),
602 @r###" 601 @r###"
602 [240; 300) '{ ...obj; }': ()
603 [250; 253) 'obj': &dyn Bar
604 [266; 268) '&S': &S
605 [267; 268) 'S': S
606 [278; 281) 'obj': &dyn Foo
607 [294; 297) 'obj': &dyn Bar
608 [294; 297): expected &dyn Foo, got &dyn Bar
603 "### 609 "###
604 ); 610 );
605} 611}