|
| 1 | +error[E0433]: failed to resolve: use of undeclared type `Struc` |
| 2 | + --> $DIR/typo-suggestion-mistyped-in-path.rs:27:5 |
| 3 | + | |
| 4 | +LL | Struc::foo(); |
| 5 | + | ^^^^^ |
| 6 | + | | |
| 7 | + | use of undeclared type `Struc` |
| 8 | + | help: a struct with a similar name exists: `Struct` |
| 9 | + |
| 10 | +error[E0433]: failed to resolve: use of undeclared crate or module `modul` |
| 11 | + --> $DIR/typo-suggestion-mistyped-in-path.rs:31:5 |
| 12 | + | |
| 13 | +LL | modul::foo(); |
| 14 | + | ^^^^^ use of undeclared crate or module `modul` |
| 15 | + | |
| 16 | +help: there is a crate or module with a similar name |
| 17 | + | |
| 18 | +LL | module::foo(); |
| 19 | + | ~~~~~~ |
| 20 | + |
| 21 | +error[E0433]: failed to resolve: could not find `Struc` in `module` |
| 22 | + --> $DIR/typo-suggestion-mistyped-in-path.rs:35:13 |
| 23 | + | |
| 24 | +LL | module::Struc::foo(); |
| 25 | + | ^^^^^ |
| 26 | + | | |
| 27 | + | could not find `Struc` in `module` |
| 28 | + | help: a struct with a similar name exists: `Struct` |
| 29 | + |
| 30 | +error[E0433]: failed to resolve: use of undeclared type `Trai` |
| 31 | + --> $DIR/typo-suggestion-mistyped-in-path.rs:39:5 |
| 32 | + | |
| 33 | +LL | Trai::foo(); |
| 34 | + | ^^^^ |
| 35 | + | | |
| 36 | + | use of undeclared type `Trai` |
| 37 | + | help: a trait with a similar name exists: `Trait` |
| 38 | + |
| 39 | +error[E0599]: no function or associated item named `fob` found for struct `Struct` in the current scope |
| 40 | + --> $DIR/typo-suggestion-mistyped-in-path.rs:23:13 |
| 41 | + | |
| 42 | +LL | struct Struct; |
| 43 | + | ------------- function or associated item `fob` not found for this struct |
| 44 | +... |
| 45 | +LL | Struct::fob(); |
| 46 | + | ^^^ |
| 47 | + | | |
| 48 | + | function or associated item not found in `Struct` |
| 49 | + | help: there is an associated function with a similar name: `foo` |
| 50 | + |
| 51 | +error: aborting due to 5 previous errors |
| 52 | + |
| 53 | +Some errors have detailed explanations: E0433, E0599. |
| 54 | +For more information about an error, try `rustc --explain E0433`. |
0 commit comments