Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Can't see the error lines #17

@iddm

Description

@iddm

Whenever I see errors, the compiler does not show the line causing problems:

$ cargo check
   Compiling project v0.1.0 (/home/rust/src)
error[E0061]: this function takes 2 parameters but 1 parameter was supplied

error[E0308]: mismatched types
  |
  = note: expected type `std::string::String`
             found type `&str`

error[E0308]: mismatched types
  |
  = note: expected type `error::Error`
             found type `fn(std::option::Option<_>) -> rocket::response::status::BadRequest<_> {rocket::response::status::BadRequest::<_>}`

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0061, E0308.
For more information about an error, try `rustc --explain E0061`.
error: Could not compile `project`.

This is annoying and I have to waste a lot of time commenting out the lines and guessing where could the problem actually be.

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