fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
2.5 KiB67 linesraw
1error[E0412]: cannot find type `esize` in this scope
2  --> $DIR/levenshtein.rs:5:11
3   |
4LL | fn foo(c: esize) {} // Misspelled primitive type name.
5   |           ^^^^^ help: a builtin type with a similar name exists: `isize`
6
7error[E0412]: cannot find type `Baz` in this scope
8  --> $DIR/levenshtein.rs:10:10
9   |
10LL | enum Bar { }
11   | ------------ similarly named enum `Bar` defined here
12LL | 
13LL | type A = Baz; // Misspelled type name.
14   |          ^^^ help: an enum with a similar name exists: `Bar`
15
16error[E0412]: cannot find type `Opiton` in this scope
17  --> $DIR/levenshtein.rs:12:10
18   |
19LL | type B = Opiton<u8>; // Misspelled type name from the prelude.
20   |          ^^^^^^ help: an enum with a similar name exists: `Option`
21
22error[E0412]: cannot find type `Baz` in this scope
23  --> $DIR/levenshtein.rs:16:14
24   |
25LL |     type A = Baz; // No suggestion here, Bar is not visible
26   |              ^^^ not found in this scope
27
28error[E0425]: cannot find value `MAXITEM` in this scope
29  --> $DIR/levenshtein.rs:24:20
30   |
31LL | const MAX_ITEM: usize = 10;
32   | --------------------------- similarly named constant `MAX_ITEM` defined here
33...
34LL |     let v = [0u32; MAXITEM]; // Misspelled constant name.
35   |                    ^^^^^^^ help: a constant with a similar name exists: `MAX_ITEM`
36
37error[E0425]: cannot find function `foobar` in this scope
38  --> $DIR/levenshtein.rs:26:5
39   |
40LL | fn foo_bar() {}
41   | --------------- similarly named function `foo_bar` defined here
42...
43LL |     foobar(); // Misspelled function name.
44   |     ^^^^^^ help: a function with a similar name exists: `foo_bar`
45
46error[E0412]: cannot find type `first` in module `m`
47  --> $DIR/levenshtein.rs:28:15
48   |
49LL |     pub struct First;
50   |     ----------------- similarly named struct `First` defined here
51...
52LL |     let b: m::first = m::second; // Misspelled item in module.
53   |               ^^^^^ help: a struct with a similar name exists (notice the capitalization): `First`
54
55error[E0425]: cannot find value `second` in module `m`
56  --> $DIR/levenshtein.rs:28:26
57   |
58LL |     pub struct Second;
59   |     ------------------ similarly named unit struct `Second` defined here
60...
61LL |     let b: m::first = m::second; // Misspelled item in module.
62   |                          ^^^^^^ help: a unit struct with a similar name exists (notice the capitalization): `Second`
63
64error: aborting due to 8 previous errors
65
66Some errors have detailed explanations: E0412, E0425.
67For more information about an error, try `rustc --explain E0412`.