diff options
Diffstat (limited to 'crates/hir_ty/src')
-rw-r--r-- | crates/hir_ty/src/tests/traits.rs | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/crates/hir_ty/src/tests/traits.rs b/crates/hir_ty/src/tests/traits.rs index 6df8181ed..65fed02d2 100644 --- a/crates/hir_ty/src/tests/traits.rs +++ b/crates/hir_ty/src/tests/traits.rs | |||
@@ -3627,16 +3627,7 @@ impl foo::Foo for u32 { | |||
3627 | fn infer_async_ret_type() { | 3627 | fn infer_async_ret_type() { |
3628 | check_types( | 3628 | check_types( |
3629 | r#" | 3629 | r#" |
3630 | //- /main.rs crate:main deps:core | 3630 | //- minicore: future, result |
3631 | |||
3632 | enum Result<T, E> { | ||
3633 | Ok(T), | ||
3634 | Err(E), | ||
3635 | } | ||
3636 | |||
3637 | use Result::*; | ||
3638 | |||
3639 | |||
3640 | struct Fooey; | 3631 | struct Fooey; |
3641 | 3632 | ||
3642 | impl Fooey { | 3633 | impl Fooey { |
@@ -3659,15 +3650,6 @@ async fn get_accounts() -> Result<u32, ()> { | |||
3659 | // ^ u32 | 3650 | // ^ u32 |
3660 | Ok(ret) | 3651 | Ok(ret) |
3661 | } | 3652 | } |
3662 | |||
3663 | //- /core.rs crate:core | ||
3664 | #[prelude_import] use future::*; | ||
3665 | mod future { | ||
3666 | #[lang = "future_trait"] | ||
3667 | trait Future { | ||
3668 | type Output; | ||
3669 | } | ||
3670 | } | ||
3671 | "#, | 3653 | "#, |
3672 | ); | 3654 | ); |
3673 | } | 3655 | } |