]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/levenshtein.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / resolve / levenshtein.stderr
1 error[E0412]: cannot find type `esize` in this scope
2   --> $DIR/levenshtein.rs:5:11
3    |
4 LL | fn foo(c: esize) {} // Misspelled primitive type name.
5    |           ^^^^^ help: a primitive type with a similar name exists: `isize`
6
7 error[E0412]: cannot find type `Baz` in this scope
8   --> $DIR/levenshtein.rs:10:10
9    |
10 LL | type A = Baz; // Misspelled type name.
11    |          ^^^ help: an enum with a similar name exists: `Bar`
12
13 error[E0412]: cannot find type `Opiton` in this scope
14   --> $DIR/levenshtein.rs:12:10
15    |
16 LL | type B = Opiton<u8>; // Misspelled type name from the prelude.
17    |          ^^^^^^ help: an enum with a similar name exists: `Option`
18
19 error[E0412]: cannot find type `Baz` in this scope
20   --> $DIR/levenshtein.rs:16:14
21    |
22 LL |     type A = Baz; // No suggestion here, Bar is not visible
23    |              ^^^ not found in this scope
24
25 error[E0425]: cannot find value `MAXITEM` in this scope
26   --> $DIR/levenshtein.rs:24:20
27    |
28 LL |     let v = [0u32; MAXITEM]; // Misspelled constant name.
29    |                    ^^^^^^^ help: a constant with a similar name exists: `MAX_ITEM`
30
31 error[E0425]: cannot find function `foobar` in this scope
32   --> $DIR/levenshtein.rs:26:5
33    |
34 LL |     foobar(); // Misspelled function name.
35    |     ^^^^^^ help: a function with a similar name exists: `foo_bar`
36
37 error[E0412]: cannot find type `first` in module `m`
38   --> $DIR/levenshtein.rs:28:15
39    |
40 LL |     let b: m::first = m::second; // Misspelled item in module.
41    |               ^^^^^ help: a struct with a similar name exists: `First`
42
43 error[E0425]: cannot find value `second` in module `m`
44   --> $DIR/levenshtein.rs:28:26
45    |
46 LL |     let b: m::first = m::second; // Misspelled item in module.
47    |                          ^^^^^^ help: a unit struct with a similar name exists: `Second`
48
49 error: aborting due to 8 previous errors
50
51 Some errors occurred: E0412, E0425.
52 For more information about an error, try `rustc --explain E0412`.