What does quote-hash mean at end of function?

I came across this main function what is the # & " at the end?

fn main() {
    println! ("hello, world:");
}"#;

Your snippet is not valid Rust syntax. I assume you came across "# as the suffix of a raw string literal.

3 Likes

oh yes, I see this is part of a raw byte string constant. Thanks .

2 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.