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
Link
Blogged on here:-
Rust:- Compiler Error – “error: there is no argument named <argument"
https://learningintheopen.org/2025/03/21/rust-compiler-error-error-there-is-no-argument-named-argument/
Link
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 **
Compiler Error
Code Shared here:-
https://onecompiler.com/rust/43cgmqv47
Link
Blogged on here:-
Rust:- Compiler Error – “error: there is no argument named
<argument"https://learningintheopen.org/2025/03/21/rust-compiler-error-error-there-is-no-argument-named-argument/
Link