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