1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
|
error[E0308]: mismatched types
--> $DIR/typo-in-repeat-expr-issue-80173.rs:15:19
|
LL | let a = ["a", 10];
| ^^ expected `&str`, found integer
|
help: replace the comma with a semicolon to create an array
|
LL - let a = ["a", 10];
LL + let a = ["a"; 10];
|
error[E0308]: mismatched types
--> $DIR/typo-in-repeat-expr-issue-80173.rs:20:20
|
LL | let b = [Type, size_b];
| ^^^^^^ expected `Type`, found `usize`
|
help: replace the comma with a semicolon to create an array
|
LL - let b = [Type, size_b];
LL + let b = [Type; size_b];
|
error[E0308]: mismatched types
--> $DIR/typo-in-repeat-expr-issue-80173.rs:25:20
|
LL | let c = [Type, size_c];
| ^^^^^^ expected `Type`, found `usize`
error[E0308]: mismatched types
--> $DIR/typo-in-repeat-expr-issue-80173.rs:29:20
|
LL | let d = [Type, size_d];
| ^^^^^^ expected `Type`, found `bool`
error[E0308]: mismatched types
--> $DIR/typo-in-repeat-expr-issue-80173.rs:32:29
|
LL | let e = [String::new(), 10];
| ^^- help: try using a conversion method: `.to_string()`
| |
| expected `String`, found integer
error[E0308]: mismatched types
--> $DIR/typo-in-repeat-expr-issue-80173.rs:36:19
|
LL | let f = ["f", get_size()];
| ^^^^^^^^^^ expected `&str`, found `usize`
|
help: replace the comma with a semicolon to create an array
|
LL - let f = ["f", get_size()];
LL + let f = ["f"; get_size()];
|
error[E0308]: mismatched types
--> $DIR/typo-in-repeat-expr-issue-80173.rs:40:19
|
LL | let m = ["m", get_dyn_size()];
| ^^^^^^^^^^^^^^ expected `&str`, found `usize`
error[E0308]: mismatched types
--> $DIR/typo-in-repeat-expr-issue-80173.rs:44:33
|
LL | let g = vec![String::new(), 10];
| ^^ expected `String`, found integer
|
help: replace the comma with a semicolon to create a vector
|
LL - let g = vec![String::new(), 10];
LL + let g = vec![String::new(); 10];
|
error[E0308]: mismatched types
--> $DIR/typo-in-repeat-expr-issue-80173.rs:49:24
|
LL | let h = vec![Type, dyn_size];
| ^^^^^^^^ expected `Type`, found integer
|
help: replace the comma with a semicolon to create a vector
|
LL - let h = vec![Type, dyn_size];
LL + let h = vec![Type; dyn_size];
|
error[E0308]: mismatched types
--> $DIR/typo-in-repeat-expr-issue-80173.rs:53:24
|
LL | let i = vec![Type, get_dyn_size()];
| ^^^^^^^^^^^^^^ expected `Type`, found `usize`
|
help: replace the comma with a semicolon to create a vector
|
LL - let i = vec![Type, get_dyn_size()];
LL + let i = vec![Type; get_dyn_size()];
|
error[E0308]: mismatched types
--> $DIR/typo-in-repeat-expr-issue-80173.rs:57:23
|
LL | let k = vec!['c', 10];
| ^^ expected `char`, found `u8`
|
help: replace the comma with a semicolon to create a vector
|
LL - let k = vec!['c', 10];
LL + let k = vec!['c'; 10];
|
error[E0308]: mismatched types
--> $DIR/typo-in-repeat-expr-issue-80173.rs:61:24
|
LL | let j = vec![Type, 10_u8];
| ^^^^^ expected `Type`, found `u8`
error[E0308]: mismatched types
--> $DIR/typo-in-repeat-expr-issue-80173.rs:64:27
|
LL | let l = vec![NewType, 10];
| ^^ expected `NewType`, found integer
error[E0308]: mismatched types
--> $DIR/typo-in-repeat-expr-issue-80173.rs:68:24
|
LL | let h = vec![Type, byte_size];
| ^^^^^^^^^ expected `Type`, found `u8`
error: aborting due to 14 previous errors
For more information about this error, try `rustc --explain E0308`.
|