rust/tests/ui/parser/raw/issue-70677-panic-on-unterminated-raw-str-at-eof.rs

6 lines
321 B
Rust
Raw Normal View History

// This won't actually panic because of the error comment -- the `"` needs to be
// the last byte in the file (including not having a trailing newline)
// Prior to the fix you get the error: 'expected item, found `r" ...`'
// because the string being unterminated wasn't properly detected.
r" //~ unterminated raw string