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