Fully quilified path to files with errors
⚓ Rust 📅 2025-12-02 👤 surdeus 👁️ 1I use my own IDE for Rust development. Ii works also for other languages as C, Java, Swift, Go...
When an error detected in Rust code, the compiler gives me an error notification as below:
ompiling main ...
error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `rom`
--> main.rs:11:30
|
11 | let greetings = String::f rom("Welcome to the festival!!!");
| ^^^ expected one of 8 possible tokens
|
help: there is a keyword `fn` with a similar name
|
11 | let greetings = String::fn rom("Welcome to the festival!!!");
| +
But my IDE struggles to find the main.rs. It's much simpler in Java:
Compiling learning ...
/media/exhdd/Dev/leaner/src/java/org/dayone/model/term.java:21: error: cannot find symbol
@FormField(presentType = FieldType.Hidde)
^
symbol: variable Hidde
location: class FieldType
1 error
Because Java gives a fully qualified path to the file where an error detected. Is there a similar way to make Rust the same verbose? I tried '-v' option, but nothing was changed.
1 post - 1 participant
🏷️ Rust_feed