Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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