diff --git a/crates/hir_ty/src/tests/traits.rs b/crates/hir_ty/src/tests/traits.rs index fe4a1afeaf..79ff84c633 100644 --- a/crates/hir_ty/src/tests/traits.rs +++ b/crates/hir_ty/src/tests/traits.rs @@ -147,7 +147,7 @@ mod ops { pub use self::try_trait::Try; } -mov convert { +mod convert { pub trait From {} impl From for T {} } @@ -567,8 +567,8 @@ fn deref_trait() { check_types( r#" //- minicore: deref -struct Arc; -impl core::ops::Deref for Arc { +struct Arc; +impl core::ops::Deref for Arc { type Target = T; } @@ -589,9 +589,9 @@ fn deref_trait_with_inference_var() { check_types( r#" //- minicore: deref -struct Arc; -fn new_arc() -> Arc { Arc } -impl core::ops::Deref for Arc { +struct Arc; +fn new_arc() -> Arc { Arc } +impl core::ops::Deref for Arc { type Target = T; } @@ -631,7 +631,7 @@ fn deref_trait_with_question_mark_size() { check_types( r#" //- minicore: deref -struct Arc; +struct Arc; impl core::ops::Deref for Arc { type Target = T; } @@ -2431,8 +2431,8 @@ fn dyn_trait_through_chalk() { check_types( r#" //- minicore: deref -struct Box {} -impl core::ops::Deref for Box { +struct Box {} +impl core::ops::Deref for Box { type Target = T; } trait Trait {