aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-06-15 21:07:25 +0100
committerAleksey Kladov <[email protected]>2021-06-15 21:07:25 +0100
commit0798cce9e564774b663fd965aaf2ef7e5778cb3f (patch)
treea8e7906bb91b157ffaf71dd5daa3ed9f6ff84212 /crates/hir_ty
parentae92057df6608f6ab48317198a9d13a97f07f004 (diff)
internal: add result to minicore
Diffstat (limited to 'crates/hir_ty')
-rw-r--r--crates/hir_ty/src/tests/traits.rs20
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 {
3627fn infer_async_ret_type() { 3627fn 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
3632enum Result<T, E> {
3633 Ok(T),
3634 Err(E),
3635}
3636
3637use Result::*;
3638
3639
3640struct Fooey; 3631struct Fooey;
3641 3632
3642impl Fooey { 3633impl 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::*;
3665mod future {
3666 #[lang = "future_trait"]
3667 trait Future {
3668 type Output;
3669 }
3670}
3671"#, 3653"#,
3672 ); 3654 );
3673} 3655}