aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/tests/traits.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-06-15 20:02:29 +0100
committerAleksey Kladov <[email protected]>2021-06-15 20:02:29 +0100
commit09c4013ec01b5eafc436cb9369a81036297379c1 (patch)
tree219913471d49c6d7d595ee91d5e4bd0a51f00c2a /crates/hir_ty/src/tests/traits.rs
parentee13e895e337d01ea283a94b7896fddc0a922cb8 (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.rs7
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>() {
2604fn dyn_trait_through_chalk() { 2604fn dyn_trait_through_chalk() {
2605 check_types( 2605 check_types(
2606 r#" 2606 r#"
2607//- minicore: deref
2607struct Box<T> {} 2608struct Box<T> {}
2608#[lang = "deref"] 2609impl<T> core::ops::Deref for Box<T> {
2609trait Deref {
2610 type Target;
2611}
2612impl<T> Deref for Box<T> {
2613 type Target = T; 2610 type Target = T;
2614} 2611}
2615trait Trait { 2612trait Trait {