Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/parser/mismatched-braces/missing-close-brace-in-struct.rs

14 lines
179 B
Rust
Raw Normal View History

Do not complain about missing `fn main()` in some cases
2019-10-28 17:44:20 -07:00
pub(crate) struct Bar<T> {
Reduce ammount of errors given unclosed delimiter When in a file with a non-terminated item, catch the error and consume the block instead of trying to recover it more granularly in order to reduce the amount of unrelated errors that would be fixed after adding the missing closing brace. Also point out the possible location of the missing closing brace.
2019-10-25 18:30:02 -07:00
foo: T,
Exit when there are unmatched delims to avoid noisy diagnostics
2023-02-28 07:55:19 +00:00
trait T {
Reduce ammount of errors given unclosed delimiter When in a file with a non-terminated item, catch the error and consume the block instead of trying to recover it more granularly in order to reduce the amount of unrelated errors that would be fixed after adding the missing closing brace. Also point out the possible location of the missing closing brace.
2019-10-25 18:30:02 -07:00
fn foo(&self);
}
impl T for Bar<usize> {
fn foo(&self) {}
}
tweak wording of mismatched delimiter errors
2020-01-03 08:40:15 -05:00
fn main() {} //~ ERROR this file contains an unclosed delimiter
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3021ms Template: 5ms
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