Skip to content

Compiler Name and Version Number Sharing when compilation error occurs #25

@DanielAdeniji

Description

@DanielAdeniji

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions