Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
b3827e4f3728b77bd3e60587487ebfc3cc8d901b
rust/tests/ui/inference/cannot-infer-async.rs

17 lines
215 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ edition:2018
When needing type annotations in local bindings, account for impl Trait and closures Do not suggest nonsensical types when the type inference is failing on `impl Trait` or anonymous closures.
2019-08-12 16:50:46 -07:00
use std::io::Error;
Fix tidy
2019-08-12 18:42:19 -07:00
fn make_unit() -> Result<(), Error> {
When needing type annotations in local bindings, account for impl Trait and closures Do not suggest nonsensical types when the type inference is failing on `impl Trait` or anonymous closures.
2019-08-12 16:50:46 -07:00
Ok(())
}
fn main() {
let fut = async {
Better rustc_on_unimplemented, and UI test fixes
2021-04-17 11:56:07 -07:00
make_unit()?;
Fix tidy
2019-08-12 18:42:19 -07:00
selection failure: recompute applicable impls
2022-10-19 17:17:19 +02:00
Ok(())
//~^ ERROR type annotations needed
When needing type annotations in local bindings, account for impl Trait and closures Do not suggest nonsensical types when the type inference is failing on `impl Trait` or anonymous closures.
2019-08-12 16:50:46 -07:00
};
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2084ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API