Code
fn main() {
println!('hello world');
}
Current output
error: prefix `world` is unknown
--> src/main.rs:4:21
|
4 | println!('hello world');
| ^^^^^ unknown prefix
|
= note: prefixed identifiers and literals are reserved since Rust 2021
help: consider inserting whitespace here
|
4 | println!('hello world ');
| +
error[E0762]: unterminated character literal
--> src/main.rs:4:26
|
4 | println!('hello world');
| ^^^
Desired output
error: format argument must be a string literal
--> src/main.rs:2:14
|
4 | println!('hello world');
| ^^^^^^^^^^^^^
|
help: you might have intended a string literal
|
4 | println!("hello world");
| +++++++++++++
Rationale and extra context
No response
Other cases
No response
Anything else?
No response
Code
Current output
Desired output
Rationale and extra context
No response
Other cases
No response
Anything else?
No response