Closed
Description
struct Demo {}
impl Demo {
fn func() {}
}
fn main() {
Dem::func();
}
Current output:
error[E0433]: failed to resolve: use of undeclared type `Dem`
--> strcuct.rs:8:5
|
8 | Dem::func();
| ^^^ use of undeclared type `Dem`
error: aborting due to previous error
Expect to have a tip from Levenshtein algorithm.
9 | Dem::func();
| ^^^
help: a struct with a similar name exists
|
9 | Demo::func();
| ~~~~