some other small things (indentation, extra output) are also different between stock and Debian rustc
-diff --git a/src/test/ui/async-await/issues/issue-62009-1.stderr b/src/test/ui/async-await/issues/issue-62009-1.stderr
-index cd6670923..66388098d 100644
--- a/src/test/ui/async-await/issues/issue-62009-1.stderr
+++ b/src/test/ui/async-await/issues/issue-62009-1.stderr
-@@ -32,11 +32,6 @@ error[E0277]: the trait bound `[closure@$DIR/issue-62009-1.rs:16:5: 16:15]: std:
+@@ -32,11 +32,6 @@
|
LL | (|_| 2333).await;
| ^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `[closure@$DIR/issue-62009-1.rs:16:5: 16:15]`
error: aborting due to 4 previous errors
-diff --git a/src/test/ui/closures/closure-move-sync.stderr b/src/test/ui/closures/closure-move-sync.stderr
-index 2187823d7..390b2e11f 100644
--- a/src/test/ui/closures/closure-move-sync.stderr
+++ b/src/test/ui/closures/closure-move-sync.stderr
-@@ -3,11 +3,6 @@ error[E0277]: `std::sync::mpsc::Receiver<()>` cannot be shared between threads s
+@@ -3,11 +3,6 @@
|
LL | let t = thread::spawn(|| {
| ^^^^^^^^^^^^^ `std::sync::mpsc::Receiver<()>` cannot be shared between threads safely
|
= help: the trait `std::marker::Sync` is not implemented for `std::sync::mpsc::Receiver<()>`
= note: required because of the requirements on the impl of `std::marker::Send` for `&std::sync::mpsc::Receiver<()>`
-@@ -18,11 +13,6 @@ error[E0277]: `std::sync::mpsc::Sender<()>` cannot be shared between threads saf
+@@ -18,11 +13,6 @@
|
LL | thread::spawn(|| tx.send(()).unwrap());
| ^^^^^^^^^^^^^ `std::sync::mpsc::Sender<()>` cannot be shared between threads safely
|
= help: the trait `std::marker::Sync` is not implemented for `std::sync::mpsc::Sender<()>`
= note: required because of the requirements on the impl of `std::marker::Send` for `&std::sync::mpsc::Sender<()>`
-diff --git a/src/test/ui/consts/const-size_of-cycle.stderr b/src/test/ui/consts/const-size_of-cycle.stderr
-index c03b7a19f..99a9461ab 100644
--- a/src/test/ui/consts/const-size_of-cycle.stderr
+++ b/src/test/ui/consts/const-size_of-cycle.stderr
-@@ -15,15 +15,7 @@ note: ...which requires const-evaluating `Foo::bytes::{{constant}}#0`...
+@@ -15,15 +15,7 @@
LL | bytes: [u8; std::mem::size_of::<Foo>()]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires const-evaluating `std::mem::size_of`...
= note: ...which requires computing layout of `Foo`...
= note: ...which requires normalizing `ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: All, def_id: None }, value: [u8; _] }`...
= note: ...which again requires const-evaluating + checking `Foo::bytes::{{constant}}#0`, completing the cycle
-diff --git a/src/test/ui/consts/miri_unleashed/drop.stderr b/src/test/ui/consts/miri_unleashed/drop.stderr
-index 2439d527b..fd3281144 100644
--- a/src/test/ui/consts/miri_unleashed/drop.stderr
+++ b/src/test/ui/consts/miri_unleashed/drop.stderr
-@@ -5,14 +5,6 @@ LL | let _v: Vec<i32> = Vec::new();
+@@ -5,14 +5,6 @@
| ^^
error[E0080]: could not evaluate static initializer
|
::: $DIR/drop.rs:23:1
|
-diff --git a/src/test/ui/consts/offset_from_ub.stderr b/src/test/ui/consts/offset_from_ub.stderr
-index 24da983cf..8becdc100 100644
--- a/src/test/ui/consts/offset_from_ub.stderr
+++ b/src/test/ui/consts/offset_from_ub.stderr
@@ -1,11 +1,4 @@
|
::: $DIR/offset_from_ub.rs:16:1
|
-@@ -21,13 +14,6 @@ LL | | };
+@@ -21,13 +14,6 @@
= note: `#[deny(const_err)]` on by default
error: any use of this value will cause an error
|
::: $DIR/offset_from_ub.rs:26:1
|
-@@ -38,13 +24,6 @@ LL | | };
+@@ -38,13 +24,6 @@
| |__-
error: any use of this value will cause an error
|
::: $DIR/offset_from_ub.rs:31:1
|
-@@ -58,13 +37,6 @@ LL | | };
+@@ -58,13 +37,6 @@
| |__-
error: any use of this value will cause an error
|
::: $DIR/offset_from_ub.rs:39:1
|
-@@ -76,13 +48,6 @@ LL | | };
+@@ -76,13 +48,6 @@
| |__-
error: any use of this value will cause an error
|
::: $DIR/offset_from_ub.rs:45:1
|
-diff --git a/src/test/ui/derives/derives-span-Hash-enum-struct-variant.stderr b/src/test/ui/derives/derives-span-Hash-enum-struct-variant.stderr
-index 00b033004..b24aa1fe6 100644
--- a/src/test/ui/derives/derives-span-Hash-enum-struct-variant.stderr
+++ b/src/test/ui/derives/derives-span-Hash-enum-struct-variant.stderr
-@@ -3,11 +3,6 @@ error[E0277]: the trait bound `Error: std::hash::Hash` is not satisfied
+@@ -3,11 +3,6 @@
|
LL | x: Error
| ^^^^^^^^ the trait `std::hash::Hash` is not implemented for `Error`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
-diff --git a/src/test/ui/derives/derives-span-Hash-enum.stderr b/src/test/ui/derives/derives-span-Hash-enum.stderr
-index 004cabf20..ff13218ed 100644
--- a/src/test/ui/derives/derives-span-Hash-enum.stderr
+++ b/src/test/ui/derives/derives-span-Hash-enum.stderr
-@@ -3,11 +3,6 @@ error[E0277]: the trait bound `Error: std::hash::Hash` is not satisfied
+@@ -3,11 +3,6 @@
|
LL | Error
| ^^^^^ the trait `std::hash::Hash` is not implemented for `Error`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
-diff --git a/src/test/ui/derives/derives-span-Hash-struct.stderr b/src/test/ui/derives/derives-span-Hash-struct.stderr
-index 27b8ff3d1..8a3d8a0f3 100644
--- a/src/test/ui/derives/derives-span-Hash-struct.stderr
+++ b/src/test/ui/derives/derives-span-Hash-struct.stderr
-@@ -3,11 +3,6 @@ error[E0277]: the trait bound `Error: std::hash::Hash` is not satisfied
+@@ -3,11 +3,6 @@
|
LL | x: Error
| ^^^^^^^^ the trait `std::hash::Hash` is not implemented for `Error`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
-diff --git a/src/test/ui/derives/derives-span-Hash-tuple-struct.stderr b/src/test/ui/derives/derives-span-Hash-tuple-struct.stderr
-index f1142bc50..1396e1c8f 100644
--- a/src/test/ui/derives/derives-span-Hash-tuple-struct.stderr
+++ b/src/test/ui/derives/derives-span-Hash-tuple-struct.stderr
-@@ -3,11 +3,6 @@ error[E0277]: the trait bound `Error: std::hash::Hash` is not satisfied
+@@ -3,11 +3,6 @@
|
LL | Error
| ^^^^^ the trait `std::hash::Hash` is not implemented for `Error`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
-diff --git a/src/test/ui/derives/deriving-meta-unknown-trait.stderr b/src/test/ui/derives/deriving-meta-unknown-trait.stderr
-index ead131323..abe382fc4 100644
--- a/src/test/ui/derives/deriving-meta-unknown-trait.stderr
+++ b/src/test/ui/derives/deriving-meta-unknown-trait.stderr
@@ -1,24 +1,14 @@
error: aborting due to 2 previous errors
-diff --git a/src/test/ui/impl-trait/impl-generic-mismatch.stderr b/src/test/ui/impl-trait/impl-generic-mismatch.stderr
-index 0c294d1e4..8b0b46370 100644
--- a/src/test/ui/impl-trait/impl-generic-mismatch.stderr
+++ b/src/test/ui/impl-trait/impl-generic-mismatch.stderr
-@@ -31,11 +31,6 @@ error[E0643]: method `hash` has incompatible signature for trait
+@@ -31,11 +31,6 @@
|
LL | fn hash(&self, hasher: &mut impl Hasher) {}
| ^^^^^^^^^^^ expected generic parameter, found `impl Trait`
error: aborting due to 3 previous errors
-diff --git a/src/test/ui/imports/extern-prelude-extern-crate-restricted-shadowing.stderr b/src/test/ui/imports/extern-prelude-extern-crate-restricted-shadowing.stderr
-index 245013a4e..4ead43890 100644
--- a/src/test/ui/imports/extern-prelude-extern-crate-restricted-shadowing.stderr
+++ b/src/test/ui/imports/extern-prelude-extern-crate-restricted-shadowing.stderr
-@@ -22,10 +22,6 @@ LL | extern crate std as Vec;
+@@ -24,10 +24,6 @@
LL | define_vec!();
| -------------- in this macro invocation
note: `Vec` could also refer to the struct defined here
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors
-diff --git a/src/test/ui/in-band-lifetimes/mismatched_trait_impl-2.stderr b/src/test/ui/in-band-lifetimes/mismatched_trait_impl-2.stderr
-index 374e308a6..555918964 100644
--- a/src/test/ui/in-band-lifetimes/mismatched_trait_impl-2.stderr
+++ b/src/test/ui/in-band-lifetimes/mismatched_trait_impl-2.stderr
-@@ -3,11 +3,6 @@ error: `impl` item signature doesn't match `trait` item signature
+@@ -3,11 +3,6 @@
|
LL | fn deref(&self) -> &dyn Trait {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found fn(&Struct) -> &dyn Trait
|
= note: expected `fn(&Struct) -> &(dyn Trait + 'static)`
found `fn(&Struct) -> &dyn Trait`
-diff --git a/src/test/ui/interior-mutability/interior-mutability.stderr b/src/test/ui/interior-mutability/interior-mutability.stderr
-index 2378e4121..941ef20f8 100644
--- a/src/test/ui/interior-mutability/interior-mutability.stderr
+++ b/src/test/ui/interior-mutability/interior-mutability.stderr
-@@ -3,11 +3,6 @@ error[E0277]: the type `std::cell::UnsafeCell<i32>` may contain interior mutabil
+@@ -3,11 +3,6 @@
|
LL | catch_unwind(|| { x.set(23); });
| ^^^^^^^^^^^^ `std::cell::UnsafeCell<i32>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
|
= help: within `std::cell::Cell<i32>`, the trait `std::panic::RefUnwindSafe` is not implemented for `std::cell::UnsafeCell<i32>`
= note: required because it appears within the type `std::cell::Cell<i32>`
-diff --git a/src/test/ui/issues/issue-17546.stderr b/src/test/ui/issues/issue-17546.stderr
-index 2d532cdb9..2998c98e1 100644
--- a/src/test/ui/issues/issue-17546.stderr
+++ b/src/test/ui/issues/issue-17546.stderr
@@ -1,13 +1,8 @@
|
help: try using the variant's enum
|
-@@ -57,13 +52,8 @@ LL | use std::result::Result;
+@@ -57,13 +52,8 @@
error[E0573]: expected type, found variant `NoResult`
--> $DIR/issue-17546.rs:37:15
|
|
help: try using the variant's enum
|
-diff --git a/src/test/ui/issues/issue-21160.stderr b/src/test/ui/issues/issue-21160.stderr
-index a7bb4fc51..a21bf1429 100644
--- a/src/test/ui/issues/issue-21160.stderr
+++ b/src/test/ui/issues/issue-21160.stderr
-@@ -3,11 +3,6 @@ error[E0277]: the trait bound `Bar: std::hash::Hash` is not satisfied
+@@ -3,11 +3,6 @@
|
LL | struct Foo(Bar);
| ^^^ the trait `std::hash::Hash` is not implemented for `Bar`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
-diff --git a/src/test/ui/issues/issue-27033.stderr b/src/test/ui/issues/issue-27033.stderr
-index c0de0f142..a5a59edc7 100644
--- a/src/test/ui/issues/issue-27033.stderr
+++ b/src/test/ui/issues/issue-27033.stderr
-@@ -3,11 +3,6 @@ error[E0530]: match bindings cannot shadow unit variants
+@@ -3,11 +3,6 @@
|
LL | None @ _ => {}
| ^^^^ cannot be named the same as a unit variant
error[E0530]: match bindings cannot shadow constants
--> $DIR/issue-27033.rs:11:9
-diff --git a/src/test/ui/issues/issue-38857.stderr b/src/test/ui/issues/issue-38857.stderr
-index ba0f1336f..38adfd052 100644
--- a/src/test/ui/issues/issue-38857.stderr
+++ b/src/test/ui/issues/issue-38857.stderr
-@@ -11,10 +11,6 @@ LL | let a = std::sys::imp::process::process_common::StdioPipes { ..panic!()
+@@ -11,10 +11,6 @@
| ^^^ this module is private
|
note: the module `sys` is defined here
error: aborting due to 2 previous errors
-diff --git a/src/test/ui/issues/issue-7607-1.stderr b/src/test/ui/issues/issue-7607-1.stderr
-index 94f489e20..6c0b6af67 100644
--- a/src/test/ui/issues/issue-7607-1.stderr
+++ b/src/test/ui/issues/issue-7607-1.stderr
@@ -1,13 +1,8 @@
error: aborting due to previous error
-diff --git a/src/test/ui/macros/macro-name-typo.stderr b/src/test/ui/macros/macro-name-typo.stderr
-index 00afbde89..14fd76478 100644
--- a/src/test/ui/macros/macro-name-typo.stderr
+++ b/src/test/ui/macros/macro-name-typo.stderr
@@ -1,13 +1,8 @@
error: aborting due to previous error
-diff --git a/src/test/ui/macros/macro-path-prelude-fail-3.stderr b/src/test/ui/macros/macro-path-prelude-fail-3.stderr
-index 536459067..15be75551 100644
--- a/src/test/ui/macros/macro-path-prelude-fail-3.stderr
+++ b/src/test/ui/macros/macro-path-prelude-fail-3.stderr
@@ -1,13 +1,8 @@
error: aborting due to previous error
-diff --git a/src/test/ui/no-send-res-ports.stderr b/src/test/ui/no-send-res-ports.stderr
-index 65946ee8a..f40cb0562 100644
--- a/src/test/ui/no-send-res-ports.stderr
+++ b/src/test/ui/no-send-res-ports.stderr
-@@ -10,11 +10,6 @@ LL | | let y = x;
+@@ -10,11 +10,6 @@
LL | | println!("{:?}", y);
LL | | });
| |_____- within this `[closure@$DIR/no-send-res-ports.rs:29:19: 33:6 x:main::Foo]`
|
= help: within `[closure@$DIR/no-send-res-ports.rs:29:19: 33:6 x:main::Foo]`, the trait `std::marker::Send` is not implemented for `std::rc::Rc<()>`
= note: required because it appears within the type `Port<()>`
-diff --git a/src/test/ui/proc-macro/parent-source-spans.stderr b/src/test/ui/proc-macro/parent-source-spans.stderr
-index 9f0fefcfe..59d21f5c1 100644
--- a/src/test/ui/proc-macro/parent-source-spans.stderr
+++ b/src/test/ui/proc-macro/parent-source-spans.stderr
-@@ -132,11 +132,6 @@ LL | parent_source_spans!($($tokens)*);
+@@ -144,11 +144,6 @@
...
LL | one!("hello", "world");
| ----------------------- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
-@@ -146,11 +141,6 @@ LL | parent_source_spans!($($tokens)*);
+@@ -160,11 +155,6 @@
...
LL | two!("yay", "rust");
| -------------------- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
-@@ -160,11 +150,6 @@ LL | parent_source_spans!($($tokens)*);
+@@ -176,11 +166,6 @@
...
LL | three!("hip", "hop");
| --------------------- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
-diff --git a/src/test/ui/proc-macro/resolve-error.stderr b/src/test/ui/proc-macro/resolve-error.stderr
-index 73a6ab1cf..5b13176c5 100644
--- a/src/test/ui/proc-macro/resolve-error.stderr
+++ b/src/test/ui/proc-macro/resolve-error.stderr
-@@ -74,24 +74,14 @@ LL | pub fn derive_clonea(input: TokenStream) -> TokenStream {
+@@ -74,24 +74,14 @@
error: cannot find derive macro `Dlone` in this scope
--> $DIR/resolve-error.rs:39:10
|
error: cannot find attribute `FooWithLongNan` in this scope
--> $DIR/resolve-error.rs:36:3
-diff --git a/src/test/ui/resolve/levenshtein.stderr b/src/test/ui/resolve/levenshtein.stderr
-index a622d6cb3..4be76a51b 100644
--- a/src/test/ui/resolve/levenshtein.stderr
+++ b/src/test/ui/resolve/levenshtein.stderr
-@@ -18,11 +18,6 @@ error[E0412]: cannot find type `Opiton` in this scope
+@@ -18,11 +18,6 @@
|
LL | type B = Opiton<u8>; // Misspelled type name from the prelude.
| ^^^^^^ help: an enum with a similar name exists: `Option`
error[E0412]: cannot find type `Baz` in this scope
--> $DIR/levenshtein.rs:20:14
-diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.stderr b/src/test/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.stderr
-index ed4f34b52..c79545db0 100644
--- a/src/test/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.stderr
+++ b/src/test/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.stderr
-@@ -5,11 +5,6 @@ LL | / fn can_parse_zero_as_f32() -> Result<f32, ParseFloatError> {
+@@ -5,11 +5,6 @@
LL | | "0".parse()
LL | | }
| |_^ `main` can only return types that implement `std::process::Termination`
|
= help: the trait `std::process::Termination` is not implemented for `std::result::Result<f32, std::num::ParseFloatError>`
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
-diff --git a/src/test/ui/stability-in-private-module.stderr b/src/test/ui/stability-in-private-module.stderr
-index 3a974164f..f2ee71d37 100644
--- a/src/test/ui/stability-in-private-module.stderr
+++ b/src/test/ui/stability-in-private-module.stderr
-@@ -5,10 +5,6 @@ LL | let _ = std::thread::thread_info::current_thread();
+@@ -5,10 +5,6 @@
| ^^^^^^^^^^^ this module is private
|
note: the module `thread_info` is defined here
error: aborting due to previous error
-diff --git a/src/test/ui/suggestions/attribute-typos.stderr b/src/test/ui/suggestions/attribute-typos.stderr
-index a09435925..c7f04dde1 100644
--- a/src/test/ui/suggestions/attribute-typos.stderr
+++ b/src/test/ui/suggestions/attribute-typos.stderr
-@@ -16,13 +16,8 @@ LL | #[rustc_err]
+@@ -15,13 +15,8 @@
error: cannot find attribute `tests` in this scope
--> $DIR/attribute-typos.rs:8:3
|
error: cannot find attribute `deprcated` in this scope
--> $DIR/attribute-typos.rs:5:3
-diff --git a/src/test/ui/traits/trait-suggest-where-clause.stderr b/src/test/ui/traits/trait-suggest-where-clause.stderr
-index 831dd4392..c1af903b6 100644
--- a/src/test/ui/traits/trait-suggest-where-clause.stderr
+++ b/src/test/ui/traits/trait-suggest-where-clause.stderr
-@@ -6,11 +6,6 @@ LL | fn check<T: Iterator, U: ?Sized>() {
+@@ -6,11 +6,6 @@
LL | // suggest a where-clause, if needed
LL | mem::size_of::<U>();
| ^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `U`
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
-@@ -23,11 +18,6 @@ LL | fn check<T: Iterator, U: ?Sized>() {
+@@ -23,11 +18,6 @@
...
LL | mem::size_of::<Misc<U>>();
| ^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: within `Misc<U>`, the trait `std::marker::Sized` is not implemented for `U`
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
-@@ -62,11 +52,6 @@ error[E0277]: the size for values of type `[T]` cannot be known at compilation t
+@@ -62,11 +52,6 @@
|
LL | mem::size_of::<[T]>();
| ^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `[T]`
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
-@@ -76,11 +61,6 @@ error[E0277]: the size for values of type `[&U]` cannot be known at compilation
+@@ -76,11 +61,6 @@
|
LL | mem::size_of::<[&U]>();
| ^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `[&U]`
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
-diff --git a/src/test/ui/type_length_limit.stderr b/src/test/ui/type_length_limit.stderr
-index 8a9ef993b..83a61ce79 100644
--- a/src/test/ui/type_length_limit.stderr
+++ b/src/test/ui/type_length_limit.stderr
@@ -1,8 +1,4 @@
|
= note: consider adding a `#![type_length_limit="1094"]` attribute to your crate
+--- a/src/test/ui/issues/issue-31173.stderr
++++ b/src/test/ui/issues/issue-31173.stderr
+@@ -12,11 +12,6 @@
+ |
+ LL | .collect();
+ | ^^^^^^^ method not found in `std::iter::Cloned<std::iter::TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:10:39: 13:6 found_e:_]>>`
+- |
+- ::: $SRC_DIR/libcore/iter/adapters/mod.rs:LL:COL
+- |
+-LL | pub struct Cloned<I> {
+- | -------------------- doesn't satisfy `_: std::iter::Iterator`
+ ...
+ LL | pub struct TakeWhile<I, P> {
+ | -------------------------- doesn't satisfy `<_ as std::iter::Iterator>::Item = &_`
+--- a/src/test/ui/mismatched_types/issue-36053-2.stderr
++++ b/src/test/ui/mismatched_types/issue-36053-2.stderr
+@@ -6,11 +6,6 @@
+ | |
+ | doesn't satisfy `<_ as std::ops::FnOnce<(&&str,)>>::Output = bool`
+ | doesn't satisfy `_: std::ops::FnMut<(&&str,)>`
+- |
+- ::: $SRC_DIR/libcore/iter/adapters/mod.rs:LL:COL
+- |
+-LL | pub struct Filter<I, P> {
+- | ----------------------- doesn't satisfy `_: std::iter::Iterator`
+ |
+ = note: the method `count` exists but the following trait bounds were not satisfied:
+ `<[closure@$DIR/issue-36053-2.rs:11:39: 11:53] as std::ops::FnOnce<(&&str,)>>::Output = bool`
+--- a/src/test/ui/suggestions/imm-ref-trait-object.stderr
++++ b/src/test/ui/suggestions/imm-ref-trait-object.stderr
+@@ -3,11 +3,6 @@
+ |
+ LL | t.min().unwrap()
+ | ^^^
+- |
+- ::: $SRC_DIR/libcore/iter/traits/iterator.rs:LL:COL
+- |
+-LL | Self: Sized,
+- | ----- this has a `Sized` requirement
+ |
+ = note: you need `&mut dyn std::iter::Iterator<Item = &u64>` instead of `&dyn std::iter::Iterator<Item = &u64>`
+
+--- a/src/test/ui/suggestions/mut-borrow-needed-by-trait.stderr
++++ b/src/test/ui/suggestions/mut-borrow-needed-by-trait.stderr
+@@ -30,11 +30,6 @@
+ |
+ LL | writeln!(fp, "hello world").unwrap();
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `std::io::BufWriter<&dyn std::io::Write>`
+- |
+- ::: $SRC_DIR/libstd/io/buffered.rs:LL:COL
+- |
+-LL | pub struct BufWriter<W: Write> {
+- | ------------------------------ doesn't satisfy `_: std::io::Write`
+ |
+ = note: the method `write_fmt` exists but the following trait bounds were not satisfied:
+ `&dyn std::io::Write: std::io::Write`
+--- a/src/test/ui/traits/trait-alias/trait-alias-object-fail.stderr
++++ b/src/test/ui/traits/trait-alias/trait-alias-object-fail.stderr
+@@ -3,11 +3,6 @@
+ |
+ LL | let _: &dyn EqAlias = &123;
+ | ^^^^^^^^^^^ the trait `std::cmp::Eq` cannot be made into an object
+- |
+- ::: $SRC_DIR/libcore/cmp.rs:LL:COL
+- |
+-LL | pub trait Eq: PartialEq<Self> {
+- | --------------- the trait cannot be made into an object because it uses `Self` as a type parameter in this
+
+ error[E0191]: the value of the associated type `Item` (from trait `std::iter::Iterator`) must be specified
+ --> $DIR/trait-alias-object-fail.rs:14:17
+--- a/src/test/ui/unique-object-noncopyable.stderr
++++ b/src/test/ui/unique-object-noncopyable.stderr
+@@ -9,11 +9,6 @@
+ ...
+ LL | let _z = y.clone();
+ | ^^^^^ method not found in `std::boxed::Box<dyn Foo>`
+- |
+- ::: $SRC_DIR/liballoc/boxed.rs:LL:COL
+- |
+-LL | pub struct Box<T: ?Sized>(Unique<T>);
+- | ------------------------------------- doesn't satisfy `std::boxed::Box<dyn Foo>: std::clone::Clone`
+ |
+ = note: the method `clone` exists but the following trait bounds were not satisfied:
+ `dyn Foo: std::marker::Sized`
+--- a/src/test/ui/unique-pinned-nocopy.stderr
++++ b/src/test/ui/unique-pinned-nocopy.stderr
+@@ -6,11 +6,6 @@
+ ...
+ LL | let _j = i.clone();
+ | ^^^^^ method not found in `std::boxed::Box<R>`
+- |
+- ::: $SRC_DIR/liballoc/boxed.rs:LL:COL
+- |
+-LL | pub struct Box<T: ?Sized>(Unique<T>);
+- | ------------------------------------- doesn't satisfy `std::boxed::Box<R>: std::clone::Clone`
+ |
+ = note: the method `clone` exists but the following trait bounds were not satisfied:
+ `R: std::clone::Clone`