]> git.proxmox.com Git - rustc.git/blob - tests/ui/resolve/levenshtein.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / tests / 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 builtin 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 | enum Bar { }
11 | -------- similarly named enum `Bar` defined here
12 LL |
13 LL | type A = Baz; // Misspelled type name.
14 | ^^^ help: an enum with a similar name exists: `Bar`
15
16 error[E0412]: cannot find type `Opiton` in this scope
17 --> $DIR/levenshtein.rs:12:10
18 |
19 LL | type B = Opiton<u8>; // Misspelled type name from the prelude.
20 | ^^^^^^ help: an enum with a similar name exists: `Option`
21 --> $SRC_DIR/core/src/option.rs:LL:COL
22 |
23 = note: similarly named enum `Option` defined here
24
25 error[E0412]: cannot find type `Baz` in this scope
26 --> $DIR/levenshtein.rs:16:14
27 |
28 LL | type A = Baz; // No suggestion here, Bar is not visible
29 | ^^^ not found in this scope
30
31 error[E0425]: cannot find value `MAXITEM` in this scope
32 --> $DIR/levenshtein.rs:24:20
33 |
34 LL | const MAX_ITEM: usize = 10;
35 | --------------------------- similarly named constant `MAX_ITEM` defined here
36 ...
37 LL | let v = [0u32; MAXITEM]; // Misspelled constant name.
38 | ^^^^^^^ help: a constant with a similar name exists: `MAX_ITEM`
39
40 error[E0412]: cannot find type `first` in module `m`
41 --> $DIR/levenshtein.rs:28:15
42 |
43 LL | pub struct First;
44 | ----------------- similarly named struct `First` defined here
45 ...
46 LL | let b: m::first = m::second; // Misspelled item in module.
47 | ^^^^^ help: a struct with a similar name exists (notice the capitalization): `First`
48
49 error[E0425]: cannot find value `second` in module `m`
50 --> $DIR/levenshtein.rs:28:26
51 |
52 LL | pub struct Second;
53 | ------------------ similarly named unit struct `Second` defined here
54 ...
55 LL | let b: m::first = m::second; // Misspelled item in module.
56 | ^^^^^^ help: a unit struct with a similar name exists (notice the capitalization): `Second`
57
58 error[E0425]: cannot find function `foobar` in this scope
59 --> $DIR/levenshtein.rs:26:5
60 |
61 LL | fn foo_bar() {}
62 | ------------ similarly named function `foo_bar` defined here
63 ...
64 LL | foobar(); // Misspelled function name.
65 | ^^^^^^ help: a function with a similar name exists: `foo_bar`
66
67 error: aborting due to 8 previous errors
68
69 Some errors have detailed explanations: E0412, E0425.
70 For more information about an error, try `rustc --explain E0412`.