]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/typo-suggestion-mistyped-in-path.stderr
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / resolve / typo-suggestion-mistyped-in-path.stderr
1 error[E0433]: failed to resolve: could not find `Struc` in `module`
2   --> $DIR/typo-suggestion-mistyped-in-path.rs:35:13
3    |
4 LL |     module::Struc::foo();
5    |             ^^^^^
6    |             |
7    |             could not find `Struc` in `module`
8    |             help: a struct with a similar name exists: `Struct`
9
10 error[E0599]: no function or associated item named `fob` found for struct `Struct` in the current scope
11   --> $DIR/typo-suggestion-mistyped-in-path.rs:23:13
12    |
13 LL | struct Struct;
14    | ------------- function or associated item `fob` not found for this struct
15 ...
16 LL |     Struct::fob();
17    |             ^^^
18    |             |
19    |             function or associated item not found in `Struct`
20    |             help: there is an associated function with a similar name: `foo`
21
22 error[E0433]: failed to resolve: use of undeclared type `Struc`
23   --> $DIR/typo-suggestion-mistyped-in-path.rs:27:5
24    |
25 LL |     Struc::foo();
26    |     ^^^^^
27    |     |
28    |     use of undeclared type `Struc`
29    |     help: a struct with a similar name exists: `Struct`
30
31 error[E0433]: failed to resolve: use of undeclared crate or module `modul`
32   --> $DIR/typo-suggestion-mistyped-in-path.rs:31:5
33    |
34 LL |     modul::foo();
35    |     ^^^^^ use of undeclared crate or module `modul`
36    |
37 help: there is a crate or module with a similar name
38    |
39 LL |     module::foo();
40    |     ~~~~~~
41
42 error[E0433]: failed to resolve: use of undeclared type `Trai`
43   --> $DIR/typo-suggestion-mistyped-in-path.rs:39:5
44    |
45 LL |     Trai::foo();
46    |     ^^^^
47    |     |
48    |     use of undeclared type `Trai`
49    |     help: a trait with a similar name exists: `Trait`
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`.