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