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
aad1db737347b93b51a7dc45dcb6bec9e367bc02
rust/tests/ui/parser/unbalanced-doublequote.rs

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

7 lines
74 B
Rust
Raw Normal View History

Patch to error instead of crashing when parsing unmatched double quotes Patch to error and fail instead of using all available memory then crashing to detect the error condition of an unmatched double quote before the end of a file. I couldn't get it to show nice error messages, so this may not be the ideal fix. A test case for this situation has also been added.
2011-09-28 04:15:24 +10:00
//@ error-pattern: unterminated double quote string
fn main() {
"
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3988ms 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