-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
If you can share the compiler name and version, please do so.
Especially when a compiler error is blocking.
That is especially helpful in cases when the program can not be run.
** Source Code **
fn main()
{
let myname: String;
myname = "Joe".to_string();
println!("Hello, World {}", myname);
println!("Hello, World {myname}", myname = myname);
println!("Hello, World {myname}");
}
Compiler Error
error: there is no argument named `myname`
--> main.rs:12:28
|
12 | println!("Hello, World {myname}");
| ^^^^^^^^
error: aborting due to previous error
Code Shared here:-
https://onecompiler.com/rust/43cgmqv47
Blogged on here:-
Rust:- Compiler Error – “error: there is no argument named <argument"
Metadata
Metadata
Assignees
Labels
No labels