Show number in error message even for one error

Co-authored-by: Adrian <adrian.iosdev@gmail.com>
This commit is contained in:
Nilstrieb 2023-11-21 15:44:16 +00:00
parent 4fd68eb47b
commit 41e8d152dc
5025 changed files with 5026 additions and 5026 deletions

View file

@ -1465,7 +1465,7 @@ fn print_error_count(&mut self, registry: &Registry) {
};
let errors = match self.deduplicated_err_count {
0 => Cow::from(""),
1 => Cow::from("aborting due to previous error"),
1 => Cow::from("aborting due to 1 previous error"),
count => Cow::from(format!("aborting due to {count} previous errors")),
};
if self.treat_err_as_bug() {

View file

@ -1932,7 +1932,7 @@ fn check_struct_fields_on_error(
/// 8 | foo::Foo {};
/// | ^^^^^^^^ missing `you_can_use_this_field`
///
/// error: aborting due to previous error
/// error: aborting due to 1 previous error
/// ```
fn report_missing_fields(
&self,
@ -2049,7 +2049,7 @@ fn suggest_fru_from_range(
/// 8 | foo::Foo {};
/// | ^^^^^^^^
///
/// error: aborting due to previous error
/// error: aborting due to 1 previous error
/// ```
fn report_private_fields(
&self,

View file

@ -193,7 +193,7 @@
//! 27 | | )
//! | |_____- binding declared here but left uninitialized
//!
//! error: aborting due to previous error
//! error: aborting due to 1 previous error
//!
//! For more information about this error, try `rustc --explain E0381`.
//! ```

View file

@ -6,6 +6,6 @@ LL | extern "rust-intrinsec" fn rust_intrinsic() {}
|
= note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions.
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0703`.

View file

@ -16,6 +16,6 @@ LL | fn oom() -> ! {
| ^^^
= note: this error originates in the attribute macro `alloc_error_handler` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0061`.

View file

@ -4,5 +4,5 @@ error: malformed `global_allocator` attribute input
LL | #[global_allocator(malloc)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[global_allocator]`
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -4,5 +4,5 @@ error: allocators must be statics
LL | fn foo() {}
| ^^^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -10,5 +10,5 @@ LL | static B: System = System;
|
= note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -1,4 +1,4 @@
error: the `#[global_allocator]` in this crate conflicts with global allocator in: system_allocator
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -1,4 +1,4 @@
error: the `#[global_allocator]` in system_allocator conflicts with global allocator in: system_allocator2
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -14,6 +14,6 @@ help: did you mean
LL | complex(/* u32 */, &"", /* E */, F::X2, G{}, X {}, Y {}, Z {});
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.

View file

@ -14,6 +14,6 @@ help: provide the argument
LL | foo(/* &dyn std::fmt::Display + Send */);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0061`.

View file

@ -22,6 +22,6 @@ LL ~ ,
LL ~ None);
|
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0061`.

View file

@ -16,6 +16,6 @@ help: provide the argument
LL | f(/* usize */, &x, /* usize */);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0061`.

View file

@ -14,6 +14,6 @@ help: provide the arguments
LL | g((), /* bool */, /* bool */, /* bool */, /* bool */, ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0061`.

View file

@ -23,6 +23,6 @@ LL - foo(&&A, B, C, D, E, F, G);
LL + foo(&&A, D, /* &E */, G);
|
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0061`.

View file

@ -14,6 +14,6 @@ help: provide the argument
LL | (|_, ()| ())(if true {} else {return;}, ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0057`.

View file

@ -14,6 +14,6 @@ help: provide the argument
LL | (|_, ()| ())([return, ()], ());
| ~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0057`.

View file

@ -14,6 +14,6 @@ help: provide the argument
LL | let _f = f((), main);
| ~~~~~~~~~~
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0057`.

View file

@ -19,6 +19,6 @@ help: consider dereferencing the borrow
LL | qux.foo(a, b, c, d, e, *f, g, h, i, j, k, l);
| +
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.

View file

@ -24,6 +24,6 @@ note: function defined here
LL | fn foo(_: fn(i32), _: Wrapper<i32>) {}
| ^^^ ---------- ---------------
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.

View file

@ -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`.

View file

@ -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`.

View file

@ -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`.

View file

@ -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`.

View file

@ -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`.

View file

@ -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`.

View file

@ -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

View file

@ -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`.

View file

@ -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`.

View file

@ -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`.

View file

@ -4,6 +4,6 @@ error[E0412]: cannot find type `PEB` in this scope
LL | let peb: *const PEB;
| ^^^ not found in this scope
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0412`.

View file

@ -4,5 +4,5 @@ error: invalid register `invalid`: unknown register
LL | asm!("", in("invalid") "".len());
| ^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -4,5 +4,5 @@ error: cannot use register `r9`: the RWPI static base register (r9) cannot be us
LL | asm!("", out("r9") _);
| ^^^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -6,5 +6,5 @@ LL | asm!("/* {0} */", out(reg) x);
|
= note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -4,5 +4,5 @@ error: cannot use register `r8`: high registers (r8+) can only be used as clobbe
LL | asm!("", in("r8") 0);
| ^^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -6,6 +6,6 @@ LL | let pointer = 1u32 as *const _;
|
= note: the type information given here is insufficient to check whether the pointer cast is valid
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0641`.

View file

@ -6,5 +6,5 @@ LL | asm!("", out("d0") _, out("s1") _);
| |
| register `d0`
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -10,6 +10,6 @@ LL | println!("v={}", v);
LL | v = 2;
| ^^^^^ cannot assign twice to immutable variable
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0384`.

View file

@ -21,6 +21,6 @@ LL | const X: i32 = <i32 as Bar>::ID;
LL | const X: i32 = <i32 as Foo>::ID;
| ~~~~~~~~~~~~~~
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0034`.

View file

@ -10,6 +10,6 @@ help: this trait has no implementations, consider adding one
LL | trait Foo {
| ^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.

View file

@ -12,5 +12,5 @@ note: the lint level is defined here
LL | #![deny(dead_code)]
| ^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -12,6 +12,6 @@ LL | const FROM: Self::Out;
= note: expected associated type `<T as Foo>::Out`
found reference `&'static str`
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0326`.

View file

@ -13,6 +13,6 @@ LL | impl<'a> Foo for &'a () {
| ^^
= note: ...does not necessarily outlive the static lifetime
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.

View file

@ -10,6 +10,6 @@ note: type in trait
LL | const BAR: u32;
| ^^^
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0326`.

View file

@ -13,6 +13,6 @@ LL | const N: usize;
| ^ ...because it contains this associated `const`
= help: consider moving `N` to another trait
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0038`.

View file

@ -11,6 +11,6 @@ note: `Foo` defines an item `ID`, perhaps you need to implement it
LL | trait Foo {
| ^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0599`.

View file

@ -7,6 +7,6 @@ LL | const ID: i32 = 1;
LL | assert_eq!(1, bar1::Foo::ID);
| ^^ private associated constant
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0624`.

View file

@ -6,5 +6,5 @@ LL | let _array = [4; <A as Foo>::Y];
|
= note: this may fail depending on what value the parameter takes
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -7,5 +7,5 @@ LL | let _array: [u32; <A as Foo>::Y];
= note: type parameters may not be used in const expressions
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -27,6 +27,6 @@ LL | assert_eq!(<() as Tr>::A, 0);
| ^^^^^^^^^^^^^
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0391`.

View file

@ -27,6 +27,6 @@ LL | assert_eq!(<() as Tr>::B, 0); // causes the error above
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
= note: this note originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0080`.

View file

@ -42,6 +42,6 @@ note: but the referenced data is only valid for the anonymous lifetime as define
LL | const C: &&str = &"";
| ^
error: aborting due to previous error; 2 warnings emitted
error: aborting due to 1 previous error; 2 warnings emitted
For more information about this error, try `rustc --explain E0491`.

View file

@ -18,6 +18,6 @@ error[E0121]: the placeholder `_` is not allowed within types on item signatures
LL | const ASSOC: &dyn Fn(_) = 1i32;
| ^ not allowed in type signatures
error: aborting due to previous error; 1 warning emitted
error: aborting due to 1 previous error; 1 warning emitted
For more information about this error, try `rustc --explain E0121`.

View file

@ -4,6 +4,6 @@ error[E0229]: associated type bindings are not allowed here
LL | type A: S<C<X = 0i32> = 34>;
| ^^^^^^^^ associated type not allowed here
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0229`.

View file

@ -38,6 +38,6 @@ LL | const BAR: u32 = IMPL_REF_BAR;
= note: cycle used when running analysis passes on this crate
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0391`.

View file

@ -38,6 +38,6 @@ LL | const BAR: u32 = DEFAULT_REF_BAR;
= note: cycle used when running analysis passes on this crate
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0391`.

View file

@ -38,6 +38,6 @@ LL | const BAR: u32 = TRAIT_REF_BAR;
= note: cycle used when running analysis passes on this crate
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0391`.

View file

@ -10,5 +10,5 @@ note: not a concrete type
LL | impl<'a> ArpIPv4<'a> {
| ^^^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -12,6 +12,6 @@ note: required by a bound in `foo`
LL | fn foo<T: TraitWAssocConst<A = 32>>() {}
| ^^^^^^ required by this bound in `foo`
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0271`.

View file

@ -4,5 +4,5 @@ error: found associated const `BAR` when type was expected
LL | const QUX: Self::BAR;
| ^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -15,6 +15,6 @@ note: candidate #2 is defined in an impl for the type `Wrapper<()>`
LL | type Foo = ();
| ^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0034`.

View file

@ -6,5 +6,5 @@ LL | type Baz;
| |
| help: provide a definition for the type: `= <type>;`
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -6,6 +6,6 @@ LL | type Data = aux::Owner::Data;
|
= help: add `#![feature(data)]` to the crate attributes to enable
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0658`.

View file

@ -39,6 +39,6 @@ LL | | fn main() {}
| |____________^
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0391`.

View file

@ -33,6 +33,6 @@ LL | | fn main() {}
| |____________^
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0391`.

View file

@ -10,6 +10,6 @@ note: required by a bound in `Ty::Pr`
LL | type Pr<T: Copy> = T;
| ^^^^ required by this bound in `Ty::Pr`
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.

View file

@ -7,5 +7,5 @@ LL | #[cfg(region)]
LL | let _: Ty::Static<&'a str> = "";
| ^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -4,6 +4,6 @@ error[E0282]: type annotations needed
LL | let _: S<_>::P = ();
| ^^^^^^^ cannot infer type for type parameter `T`
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0282`.

View file

@ -10,6 +10,6 @@ LL | type X = impl for<T> Fn() -> Lexer<T>::Cursor;
= note: the associated type was found for
- `Lexer<i32>`
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0220`.

View file

@ -6,6 +6,6 @@ LL | impl Lexer<'d> {
| |
| help: consider introducing lifetime `'d` here: `<'d>`
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0261`.

View file

@ -4,5 +4,5 @@ error: higher-ranked subtype error
LL | fn bar(_: fn(Foo<for<'b> fn(Foo<fn(&'b ())>::Assoc)>::Assoc)) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -4,5 +4,5 @@ error: overflow evaluating associated type `Carrier<'b>::Focus<i32>`
LL | pub type Focus<T> = &'a mut for<'b> fn(Carrier<'b>::Focus<i32>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -7,6 +7,6 @@ LL | fn main(_: for<'a> fn(Foo<fn(&'a ())>::Assoc)) {}
= note: expected signature `fn()`
found signature `fn(for<'a> fn(&'a ()))`
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0580`.

View file

@ -7,6 +7,6 @@ LL | f(&local)
| | `local` is borrowed here
| returns a value referencing data owned by the current function
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0515`.

View file

@ -4,5 +4,5 @@ error: overflow evaluating associated type `T::This`
LL | type This = Self::This;
| ^^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -10,6 +10,6 @@ LL | let _: S::<bool>::Pr = ();
= note: the associated type was found for
- `S<()>`
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0220`.

View file

@ -4,6 +4,6 @@ error[E0223]: ambiguous associated type
LL | let _: S::<bool>::Pr = ();
| ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<S<bool> as Tr>::Pr`
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0223`.

View file

@ -10,5 +10,5 @@ LL | struct Container<T>(T);
= note: the following trait bounds were not satisfied:
`T: Clone`
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -16,5 +16,5 @@ LL | let _: S::<Featureless, Featureless>::X;
`Featureless: One`
`Featureless: Two`
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -6,5 +6,5 @@ LL | fn user<'a>() {
LL | let _: S::<&'a ()>::T;
| ^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -13,6 +13,6 @@ LL | fn test(_: Lexer::Cursor) {}
| ^^^^^
= note: ...does not necessarily outlive the static lifetime
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.

View file

@ -10,5 +10,5 @@ note: the lint level is defined here
LL | #![deny(non_camel_case_types)]
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -12,6 +12,6 @@ LL | impl<T: Copy> S<T> {
LL | type T = T;
| - required by a bound in this associated type
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.

View file

@ -13,6 +13,6 @@ LL | where
LL | T: Copy;
| ^^^^ required by this bound in `S<T>::X`
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.

View file

@ -4,6 +4,6 @@ error[E0223]: ambiguous associated type
LL | let _x: <dyn Trait<i32>>::Ty;
| ^^^^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<dyn Trait<i32> as Assoc>::Ty`
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0223`.

View file

@ -7,5 +7,5 @@ LL | links: [u32; A::LINKS], // Shouldn't suggest bounds already there.
= note: type parameters may not be used in const expressions
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -6,6 +6,6 @@ LL | const bar: bool = true;
LL | fn bar() {}
| ^^^^^^^^ duplicate definitions for `bar`
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0592`.

View file

@ -6,6 +6,6 @@ LL | fn orange(&self) {}
LL | fn orange(&self) {}
| ^^^^^^^^^^^^^^^^ duplicate definitions for `orange`
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0592`.

View file

@ -12,6 +12,6 @@ LL | trait Baz: Foo + Bar<Self::Item> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0391`.

View file

@ -4,6 +4,6 @@ error[E0277]: the trait bound `String: Copy` is not satisfied
LL | fn func() -> Self::Out {
| ^^^^^^^^^ the trait `Copy` is not implemented for `String`
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.

View file

@ -4,5 +4,5 @@ error: associated type bounds are only allowed in where clauses and function sig
LL | dyn for<'j> B<AssocType: 'j>:,
| ^^^^^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -4,5 +4,5 @@ error: associated type bounds are only allowed in where clauses and function sig
LL | impl dyn Trait<Item: Trait2> {}
| ^^^^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -4,5 +4,5 @@ error: `for<...>` is not allowed on associated type bounds
LL | fn foo() where Trait<for<'a> Bound<'a> = &'a ()> {
| ^^^^^^^^^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -19,6 +19,6 @@ note: required by a bound in `foo`
LL | fn foo<T: TraitWAssocConst<A = 1>>() {}
| ^^^^^ required by this bound in `foo`
error: aborting due to previous error; 1 warning emitted
error: aborting due to 1 previous error; 1 warning emitted
For more information about this error, try `rustc --explain E0271`.

View file

@ -12,6 +12,6 @@ note: required by a bound in `foo`
LL | fn foo<T: TraitWAssocConst<A = 1>>() {}
| ^^^^^ required by this bound in `foo`
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0271`.

View file

@ -6,5 +6,5 @@ LL | pub fn accept(_: impl Trait<K: Copy>) {}
|
= note: trait bounds not allowed on associated constant
error: aborting due to previous error
error: aborting due to 1 previous error

View file

@ -13,6 +13,6 @@ LL | let _low = self.lows.remove(low.identify()).unwrap();
note: method defined here
--> $SRC_DIR/std/src/collections/hash/map.rs:LL:COL
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.

View file

@ -4,6 +4,6 @@ error[E0229]: associated type bindings are not allowed here
LL | type A: S<C<i32 = u32> = ()>;
| ^^^^^^^^^ associated type not allowed here
error: aborting due to previous error
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0229`.

View file

@ -4,5 +4,5 @@ error: associated type bounds are only allowed in where clauses and function sig
LL | dyn for<'j> B<AssocType: 'j>:,
| ^^^^^^^^^^^^^
error: aborting due to previous error
error: aborting due to 1 previous error

Some files were not shown because too many files have changed in this diff Show more