diff options
author | Aleksey Kladov <[email protected]> | 2021-06-15 20:02:29 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-06-15 20:02:29 +0100 |
commit | 09c4013ec01b5eafc436cb9369a81036297379c1 (patch) | |
tree | 219913471d49c6d7d595ee91d5e4bd0a51f00c2a /crates/hir_ty/src/tests/traits.rs | |
parent | ee13e895e337d01ea283a94b7896fddc0a922cb8 (diff) |
internal: switch some tests to minicore
Diffstat (limited to 'crates/hir_ty/src/tests/traits.rs')
-rw-r--r-- | crates/hir_ty/src/tests/traits.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/crates/hir_ty/src/tests/traits.rs b/crates/hir_ty/src/tests/traits.rs index d237c3998..fb13e3ac5 100644 --- a/crates/hir_ty/src/tests/traits.rs +++ b/crates/hir_ty/src/tests/traits.rs | |||
@@ -2604,12 +2604,9 @@ fn test<T: Trait>() { | |||
2604 | fn dyn_trait_through_chalk() { | 2604 | fn dyn_trait_through_chalk() { |
2605 | check_types( | 2605 | check_types( |
2606 | r#" | 2606 | r#" |
2607 | //- minicore: deref | ||
2607 | struct Box<T> {} | 2608 | struct Box<T> {} |
2608 | #[lang = "deref"] | 2609 | impl<T> core::ops::Deref for Box<T> { |
2609 | trait Deref { | ||
2610 | type Target; | ||
2611 | } | ||
2612 | impl<T> Deref for Box<T> { | ||
2613 | type Target = T; | 2610 | type Target = T; |
2614 | } | 2611 | } |
2615 | trait Trait { | 2612 | trait Trait { |