fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.9 KiB52 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 | type A = Baz; // Misspelled type name.
11   |          ^^^ help: an enum with a similar name exists: `Bar`
12
13error[E0412]: cannot find type `Opiton` in this scope
14  --> $DIR/levenshtein.rs:12:10
15   |
16LL | type B = Opiton<u8>; // Misspelled type name from the prelude.
17   |          ^^^^^^ help: an enum with a similar name exists: `Option`
18
19error[E0412]: cannot find type `Baz` in this scope
20  --> $DIR/levenshtein.rs:16:14
21   |
22LL |     type A = Baz; // No suggestion here, Bar is not visible
23   |              ^^^ not found in this scope
24
25error[E0425]: cannot find value `MAXITEM` in this scope
26  --> $DIR/levenshtein.rs:24:20
27   |
28LL |     let v = [0u32; MAXITEM]; // Misspelled constant name.
29   |                    ^^^^^^^ help: a constant with a similar name exists: `MAX_ITEM`
30
31error[E0425]: cannot find function `foobar` in this scope
32  --> $DIR/levenshtein.rs:26:5
33   |
34LL |     foobar(); // Misspelled function name.
35   |     ^^^^^^ help: a function with a similar name exists: `foo_bar`
36
37error[E0412]: cannot find type `first` in module `m`
38  --> $DIR/levenshtein.rs:28:15
39   |
40LL |     let b: m::first = m::second; // Misspelled item in module.
41   |               ^^^^^ help: a struct with a similar name exists: `First`
42
43error[E0425]: cannot find value `second` in module `m`
44  --> $DIR/levenshtein.rs:28:26
45   |
46LL |     let b: m::first = m::second; // Misspelled item in module.
47   |                          ^^^^^^ help: a unit struct with a similar name exists: `Second`
48
49error: aborting due to 8 previous errors
50
51Some errors have detailed explanations: E0412, E0425.
52For more information about an error, try `rustc --explain E0412`.