Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
This commit is contained in:
parent
4fd68eb47b
commit
41e8d152dc
5025 changed files with 5026 additions and 5026 deletions
|
@ -4,6 +4,6 @@ error[E0080]: evaluation of constant value failed
|
|||
LL | const B: i32 = (&A)[1];
|
||||
| ^^^^^^^ index out of bounds: the length is 0 but the index is 1
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0080`.
|
||||
|
|
|
@ -4,6 +4,6 @@ error[E0080]: evaluation of constant value failed
|
|||
LL | const B: i32 = A[1];
|
||||
| ^^^^ index out of bounds: the length is 0 but the index is 1
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0080`.
|
||||
|
|
|
@ -7,6 +7,6 @@ LL | [1, 2] => true,
|
|||
= note: expected array `[u32; 2]`
|
||||
found array `[u32; N]`
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0308`.
|
||||
|
|
|
@ -9,6 +9,6 @@ help: consider changing this to be a mutable reference
|
|||
LL | let x: &[isize] = &mut [1, 2, 3, 4, 5];
|
||||
| +++
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0596`.
|
||||
|
|
|
@ -9,6 +9,6 @@ LL | let y: &mut[_] = &x[2..4];
|
|||
= note: expected mutable reference `&mut [_]`
|
||||
found reference `&[isize]`
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0308`.
|
||||
|
|
|
@ -7,6 +7,6 @@ LL | a > b;
|
|||
= note: expected reference `&[_; 0]`
|
||||
found reference `&Vec<u8>`
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0308`.
|
||||
|
|
|
@ -6,5 +6,5 @@ LL | vec![,];
|
|||
|
|
||||
= note: while trying to match end of macro
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
|
@ -9,6 +9,6 @@ LL | for x in &mut xs {
|
|||
LL | xs.push(1)
|
||||
| ^^ second mutable borrow occurs here
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0499`.
|
||||
|
|
|
@ -6,6 +6,6 @@ LL | let k = i + j;
|
|||
| |
|
||||
| Vec<R>
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0369`.
|
||||
|
|
|
@ -9,6 +9,6 @@ help: consider giving `_foo` an explicit type, where the type for type parameter
|
|||
LL | let _foo: Vec<T> = Vec::new();
|
||||
| ++++++++
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0282`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue