mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
internal: add result to minicore
This commit is contained in:
parent
ae92057df6
commit
0798cce9e5
2 changed files with 18 additions and 21 deletions
|
@ -3627,16 +3627,7 @@ impl foo::Foo for u32 {
|
|||
fn infer_async_ret_type() {
|
||||
check_types(
|
||||
r#"
|
||||
//- /main.rs crate:main deps:core
|
||||
|
||||
enum Result<T, E> {
|
||||
Ok(T),
|
||||
Err(E),
|
||||
}
|
||||
|
||||
use Result::*;
|
||||
|
||||
|
||||
//- minicore: future, result
|
||||
struct Fooey;
|
||||
|
||||
impl Fooey {
|
||||
|
@ -3659,15 +3650,6 @@ async fn get_accounts() -> Result<u32, ()> {
|
|||
// ^ u32
|
||||
Ok(ret)
|
||||
}
|
||||
|
||||
//- /core.rs crate:core
|
||||
#[prelude_import] use future::*;
|
||||
mod future {
|
||||
#[lang = "future_trait"]
|
||||
trait Future {
|
||||
type Output;
|
||||
}
|
||||
}
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue