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
be00c5a9b89161b7f45ba80340f709e8e41122f9
rust/tests/ui/async-await/issues/issue-65159.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
169 B
Rust
Raw Normal View History

don't assume we can *always* find a return type hint in async fn In particular, we sometimes cannot if there is an earlier error.
2019-10-09 08:50:39 -04:00
// Regression test for #65159. We used to ICE.
//
// edition:2018
Rework diagnostics for wrong number of generic args
2021-01-02 19:45:11 +01:00
async fn copy() -> Result<()>
diagnostics: remove inconsistent English article "this" from E0107 Consider `tests/ui/const-generics/generic_const_exprs/issue-102768.stderr`, the error message where it gives additional notes about where the associated type is defined, and how the dead code lint doesn't have an article, like in `tests/ui/lint/dead-code/issue-85255.stderr`. They don't have articles, so it seems unnecessary to have one here.
2023-02-23 10:27:06 -07:00
//~^ ERROR enum takes 2 generic arguments
don't assume we can *always* find a return type hint in async fn In particular, we sometimes cannot if there is an earlier error.
2019-10-09 08:50:39 -04:00
{
Ok(())
}
fn main() { }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1336ms Template: 3ms
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