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
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/parser/issues/issue-87635.rs

10 lines
177 B
Rust
Raw Normal View History

Fix a parser ICE on invalid `fn` body
2021-07-31 06:09:54 +09:00
struct Foo {}
impl Foo {
pub fn bar()
Do not add `;` to expected tokens list when it's wrong There's a few spots where semicolons are checked for to do error recovery, and should not be suggested (or checked for other stuff). Fixes #87647
2021-12-04 11:05:30 -07:00
//~^ ERROR: associated function in `impl` without body
Fix a parser ICE on invalid `fn` body
2021-07-31 06:09:54 +09:00
}
Do not add `;` to expected tokens list when it's wrong There's a few spots where semicolons are checked for to do error recovery, and should not be suggested (or checked for other stuff). Fixes #87647
2021-12-04 11:05:30 -07:00
//~^ERROR expected one of `->`, `where`, or `{`, found `}`
Fix a parser ICE on invalid `fn` body
2021-07-31 06:09:54 +09:00
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2361ms 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