mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Do not mention associated items when they introduce an obligation
This commit is contained in:
parent
446b46673d
commit
563db4245b
@ -1958,15 +1958,9 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
|
||||
region, object_ty,
|
||||
));
|
||||
}
|
||||
ObligationCauseCode::ItemObligation(item_def_id) => {
|
||||
let item_name = tcx.def_path_str(item_def_id);
|
||||
let msg = format!("required by `{}`", item_name);
|
||||
let sp = tcx
|
||||
.hir()
|
||||
.span_if_local(item_def_id)
|
||||
.unwrap_or_else(|| tcx.def_span(item_def_id));
|
||||
let sp = tcx.sess.source_map().guess_head_span(sp);
|
||||
err.span_note(sp, &msg);
|
||||
ObligationCauseCode::ItemObligation(_item_def_id) => {
|
||||
// We hold the `DefId` of the item introducing the obligation, but displaying it
|
||||
// doesn't add user usable information. It always point at an associated item.
|
||||
}
|
||||
ObligationCauseCode::BindingObligation(item_def_id, span) => {
|
||||
let item_name = tcx.def_path_str(item_def_id);
|
||||
|
@ -232,7 +232,6 @@ fn compare_predicate_entailment<'tcx>(
|
||||
span,
|
||||
impl_m_hir_id,
|
||||
ObligationCauseCode::CompareImplMethodObligation {
|
||||
item_name: impl_m.ident.name,
|
||||
impl_item_def_id: impl_m.def_id,
|
||||
trait_item_def_id: trait_m.def_id,
|
||||
},
|
||||
|
@ -6,11 +6,6 @@ LL | #[global_allocator]
|
||||
LL | static A: usize = 0;
|
||||
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
|
||||
|
|
||||
note: required by `std::alloc::GlobalAlloc::alloc`
|
||||
--> $SRC_DIR/core/src/alloc/global.rs:LL:COL
|
||||
|
|
||||
LL | unsafe fn alloc(&self, layout: Layout) -> *mut u8;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
|
||||
@ -21,11 +16,6 @@ LL | #[global_allocator]
|
||||
LL | static A: usize = 0;
|
||||
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
|
||||
|
|
||||
note: required by `std::alloc::GlobalAlloc::dealloc`
|
||||
--> $SRC_DIR/core/src/alloc/global.rs:LL:COL
|
||||
|
|
||||
LL | unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
|
||||
@ -36,11 +26,6 @@ LL | #[global_allocator]
|
||||
LL | static A: usize = 0;
|
||||
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
|
||||
|
|
||||
note: required by `std::alloc::GlobalAlloc::realloc`
|
||||
--> $SRC_DIR/core/src/alloc/global.rs:LL:COL
|
||||
|
|
||||
LL | unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
|
||||
@ -51,11 +36,6 @@ LL | #[global_allocator]
|
||||
LL | static A: usize = 0;
|
||||
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
|
||||
|
|
||||
note: required by `std::alloc::GlobalAlloc::alloc_zeroed`
|
||||
--> $SRC_DIR/core/src/alloc/global.rs:LL:COL
|
||||
|
|
||||
LL | unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= 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 4 previous errors
|
||||
|
@ -3,12 +3,6 @@ error[E0277]: the trait bound `i32: Foo` is not satisfied
|
||||
|
|
||||
LL | const X: [i32; <i32 as Foo>::ID] = [0, 1, 2];
|
||||
| ^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `i32`
|
||||
|
|
||||
note: required by `Foo::ID`
|
||||
--> $DIR/associated-const-array-len.rs:2:5
|
||||
|
|
||||
LL | const ID: usize;
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -9,11 +9,6 @@ LL | fn f() -> ([u8; A::C], [u8; A::C]);
|
||||
|
|
||||
= note: cannot satisfy `_: A`
|
||||
= note: associated constants cannot be accessed directly on a `trait`, they can only be accessed through a specific `impl`
|
||||
note: required by `A::C`
|
||||
--> $DIR/issue-63496.rs:2:5
|
||||
|
|
||||
LL | const C: usize;
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/issue-63496.rs:4:33
|
||||
@ -26,11 +21,6 @@ LL | fn f() -> ([u8; A::C], [u8; A::C]);
|
||||
|
|
||||
= note: cannot satisfy `_: A`
|
||||
= note: associated constants cannot be accessed directly on a `trait`, they can only be accessed through a specific `impl`
|
||||
note: required by `A::C`
|
||||
--> $DIR/issue-63496.rs:2:5
|
||||
|
|
||||
LL | const C: usize;
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
@ -9,11 +9,6 @@ LL | fn return_n(&self) -> [u8; Bar::X];
|
||||
|
|
||||
= note: cannot satisfy `_: Bar`
|
||||
= note: associated constants cannot be accessed directly on a `trait`, they can only be accessed through a specific `impl`
|
||||
note: required by `Bar::X`
|
||||
--> $DIR/issue-48027.rs:2:5
|
||||
|
|
||||
LL | const X: usize;
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0038]: the trait `Bar` cannot be made into an object
|
||||
--> $DIR/issue-48027.rs:6:6
|
||||
|
@ -6,11 +6,6 @@ LL | ToInt::to_int(&g.get())
|
||||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by `ToInt::to_int`
|
||||
--> $DIR/associated-types-bound-failure.rs:6:5
|
||||
|
|
||||
LL | fn to_int(&self) -> isize;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
help: consider further restricting the associated type
|
||||
|
|
||||
LL | where G : GetToInt, <G as GetToInt>::R: ToInt
|
||||
|
@ -5,11 +5,6 @@ LL | let x: isize = Foo::bar();
|
||||
| ^^^^^^^^ cannot infer type
|
||||
|
|
||||
= note: cannot satisfy `_: Foo`
|
||||
note: required by `Foo::bar`
|
||||
--> $DIR/associated-types-unconstrained.rs:5:5
|
||||
|
|
||||
LL | fn bar() -> isize;
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -9,11 +9,6 @@ note: required because of the requirements on the impl of `Visit` for `()`
|
||||
|
|
||||
LL | impl<'a> Visit for () where
|
||||
| ^^^^^ ^^
|
||||
note: required by `Visit::visit`
|
||||
--> $DIR/issue-44153.rs:6:5
|
||||
|
|
||||
LL | fn visit() {}
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -42,12 +42,10 @@ async fn bar() -> Result<(), ()> {
|
||||
foo()?; //~ ERROR the `?` operator can only be applied to values that implement `Try`
|
||||
//~^ NOTE the `?` operator cannot be applied to type `impl Future<Output = Result<(), ()>>`
|
||||
//~| HELP the trait `Try` is not implemented for `impl Future<Output = Result<(), ()>>`
|
||||
//~| NOTE required by `branch`
|
||||
//~| HELP consider `await`ing on the `Future`
|
||||
//~| NOTE in this expansion of desugaring of operator `?`
|
||||
//~| NOTE in this expansion of desugaring of operator `?`
|
||||
//~| NOTE in this expansion of desugaring of operator `?`
|
||||
//~| NOTE in this expansion of desugaring of operator `?`
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@ -67,12 +65,10 @@ async fn baz() -> Result<(), ()> {
|
||||
t?; //~ ERROR the `?` operator can only be applied to values that implement `Try`
|
||||
//~^ NOTE the `?` operator cannot be applied to type `T`
|
||||
//~| HELP the trait `Try` is not implemented for `T`
|
||||
//~| NOTE required by `branch`
|
||||
//~| HELP consider `await`ing on the `Future`
|
||||
//~| NOTE in this expansion of desugaring of operator `?`
|
||||
//~| NOTE in this expansion of desugaring of operator `?`
|
||||
//~| NOTE in this expansion of desugaring of operator `?`
|
||||
//~| NOTE in this expansion of desugaring of operator `?`
|
||||
|
||||
|
||||
let _: i32 = tuple().0; //~ ERROR no field `0`
|
||||
|
@ -5,35 +5,25 @@ LL | foo()?;
|
||||
| ^^^^^^ the `?` operator cannot be applied to type `impl Future<Output = Result<(), ()>>`
|
||||
|
|
||||
= help: the trait `Try` is not implemented for `impl Future<Output = Result<(), ()>>`
|
||||
note: required by `branch`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn branch(self) -> ControlFlow<Self::Residual, Self::Output>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
help: consider `await`ing on the `Future`
|
||||
|
|
||||
LL | foo().await?;
|
||||
| ++++++
|
||||
|
||||
error[E0277]: the `?` operator can only be applied to values that implement `Try`
|
||||
--> $DIR/issue-61076.rs:67:5
|
||||
--> $DIR/issue-61076.rs:65:5
|
||||
|
|
||||
LL | t?;
|
||||
| ^^ the `?` operator cannot be applied to type `T`
|
||||
|
|
||||
= help: the trait `Try` is not implemented for `T`
|
||||
note: required by `branch`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn branch(self) -> ControlFlow<Self::Residual, Self::Output>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
help: consider `await`ing on the `Future`
|
||||
|
|
||||
LL | t.await?;
|
||||
| ++++++
|
||||
|
||||
error[E0609]: no field `0` on type `impl Future<Output = Tuple>`
|
||||
--> $DIR/issue-61076.rs:78:26
|
||||
--> $DIR/issue-61076.rs:74:26
|
||||
|
|
||||
LL | let _: i32 = tuple().0;
|
||||
| ^ field not available in `impl Future`, but it is available in its `Output`
|
||||
@ -44,7 +34,7 @@ LL | let _: i32 = tuple().await.0;
|
||||
| ++++++
|
||||
|
||||
error[E0609]: no field `a` on type `impl Future<Output = Struct>`
|
||||
--> $DIR/issue-61076.rs:82:28
|
||||
--> $DIR/issue-61076.rs:78:28
|
||||
|
|
||||
LL | let _: i32 = struct_().a;
|
||||
| ^ field not available in `impl Future`, but it is available in its `Output`
|
||||
@ -55,7 +45,7 @@ LL | let _: i32 = struct_().await.a;
|
||||
| ++++++
|
||||
|
||||
error[E0599]: no method named `method` found for opaque type `impl Future<Output = Struct>` in the current scope
|
||||
--> $DIR/issue-61076.rs:86:15
|
||||
--> $DIR/issue-61076.rs:82:15
|
||||
|
|
||||
LL | struct_().method();
|
||||
| ^^^^^^ method not found in `impl Future<Output = Struct>`
|
||||
@ -66,13 +56,13 @@ LL | struct_().await.method();
|
||||
| ++++++
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/issue-61076.rs:94:9
|
||||
--> $DIR/issue-61076.rs:90:9
|
||||
|
|
||||
LL | Tuple(_) => {}
|
||||
| ^^^^^^^^ expected opaque type, found struct `Tuple`
|
||||
|
|
||||
note: while checking the return type of the `async fn`
|
||||
--> $DIR/issue-61076.rs:58:21
|
||||
--> $DIR/issue-61076.rs:56:21
|
||||
|
|
||||
LL | async fn tuple() -> Tuple {
|
||||
| ^^^^^ checked the `Output` of this `async fn`, expected opaque type
|
||||
|
@ -25,11 +25,6 @@ LL | [1; ().await];
|
||||
| ^^^^^^^^ `()` is not a future
|
||||
|
|
||||
= help: the trait `Future` is not implemented for `()`
|
||||
note: required by `poll`
|
||||
--> $SRC_DIR/core/src/future/future.rs:LL:COL
|
||||
|
|
||||
LL | fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
|
@ -5,11 +5,6 @@ LL | test()?;
|
||||
| ^^^^^^^ the `?` operator cannot be applied to type `impl Future<Output = ()>`
|
||||
|
|
||||
= help: the trait `Try` is not implemented for `impl Future<Output = ()>`
|
||||
note: required by `branch`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn branch(self) -> ControlFlow<Self::Residual, Self::Output>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`)
|
||||
--> $DIR/issue-84841.rs:9:11
|
||||
@ -25,11 +20,6 @@ LL | | }
|
||||
| |_- this function should return `Result` or `Option` to accept `?`
|
||||
|
|
||||
= help: the trait `FromResidual<_>` is not implemented for `()`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
@ -34,11 +34,6 @@ LL | (|_| 2333).await;
|
||||
| ^^^^^^^^^^^^^^^^ `[closure@$DIR/issue-62009-1.rs:12:5: 12:15]` is not a future
|
||||
|
|
||||
= help: the trait `Future` is not implemented for `[closure@$DIR/issue-62009-1.rs:12:5: 12:15]`
|
||||
note: required by `poll`
|
||||
--> $SRC_DIR/core/src/future/future.rs:LL:COL
|
||||
|
|
||||
LL | fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
|
@ -11,11 +11,6 @@ LL | | }
|
||||
| |_____- this function should return `Result` or `Option` to accept `?`
|
||||
|
|
||||
= help: the trait `FromResidual<Option<Infallible>>` is not implemented for `{integer}`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be used in an async closure that returns `Result` or `Option` (or another type that implements `FromResidual`)
|
||||
--> $DIR/try-on-option-in-async.rs:17:10
|
||||
@ -30,11 +25,6 @@ LL | | };
|
||||
| |_____- this function should return `Result` or `Option` to accept `?`
|
||||
|
|
||||
= help: the trait `FromResidual<Option<Infallible>>` is not implemented for `u32`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`)
|
||||
--> $DIR/try-on-option-in-async.rs:26:6
|
||||
@ -49,11 +39,6 @@ LL | | }
|
||||
| |_- this function should return `Result` or `Option` to accept `?`
|
||||
|
|
||||
= help: the trait `FromResidual<Option<Infallible>>` is not implemented for `u32`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
@ -12,11 +12,6 @@ LL | struct WhereClause<const N: u8 = 2> where (): Trait<N>;
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<() as Trait<3_u8>>
|
||||
note: required by `WhereClause`
|
||||
--> $DIR/wfness.rs:8:1
|
||||
|
|
||||
LL | struct WhereClause<const N: u8 = 2> where (): Trait<N>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `(): Trait<1_u8>` is not satisfied
|
||||
--> $DIR/wfness.rs:16:13
|
||||
|
@ -3,12 +3,6 @@ error[E0277]: the trait bound `[Adt; _]: Foo` is not satisfied
|
||||
|
|
||||
LL | <[Adt; std::mem::size_of::<Self::Assoc>()] as Foo>::bar()
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `[Adt; _]`
|
||||
|
|
||||
note: required by `Foo::bar`
|
||||
--> $DIR/dont-evaluate-array-len-on-err-1.rs:19:5
|
||||
|
|
||||
LL | fn bar() {}
|
||||
| ^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -10,11 +10,6 @@ LL | <() as Foo<N>>::test()
|
||||
<() as Foo<101_u8>>
|
||||
<() as Foo<102_u8>>
|
||||
and 252 others
|
||||
note: required by `Foo::test`
|
||||
--> $DIR/exhaustive-value.rs:2:5
|
||||
|
|
||||
LL | fn test() {}
|
||||
| ^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -7,11 +7,6 @@ LL | #[derive(Clone)]
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ the trait `Clone` is not implemented for `Error`
|
||||
|
|
||||
note: required by `clone`
|
||||
--> $SRC_DIR/core/src/clone.rs:LL:COL
|
||||
|
|
||||
LL | fn clone(&self) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -7,11 +7,6 @@ LL | #[derive(Clone)]
|
||||
LL | Error
|
||||
| ^^^^^ the trait `Clone` is not implemented for `Error`
|
||||
|
|
||||
note: required by `clone`
|
||||
--> $SRC_DIR/core/src/clone.rs:LL:COL
|
||||
|
|
||||
LL | fn clone(&self) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -7,11 +7,6 @@ LL | struct Struct {
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ the trait `Clone` is not implemented for `Error`
|
||||
|
|
||||
note: required by `clone`
|
||||
--> $SRC_DIR/core/src/clone.rs:LL:COL
|
||||
|
|
||||
LL | fn clone(&self) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -7,11 +7,6 @@ LL | struct Struct(
|
||||
LL | Error
|
||||
| ^^^^^ the trait `Clone` is not implemented for `Error`
|
||||
|
|
||||
note: required by `clone`
|
||||
--> $SRC_DIR/core/src/clone.rs:LL:COL
|
||||
|
|
||||
LL | fn clone(&self) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -7,11 +7,6 @@ LL | struct Struct {
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ the trait `Default` is not implemented for `Error`
|
||||
|
|
||||
note: required by `std::default::Default::default`
|
||||
--> $SRC_DIR/core/src/default.rs:LL:COL
|
||||
|
|
||||
LL | fn default() -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -7,11 +7,6 @@ LL | struct Struct(
|
||||
LL | Error
|
||||
| ^^^^^ the trait `Default` is not implemented for `Error`
|
||||
|
|
||||
note: required by `std::default::Default::default`
|
||||
--> $SRC_DIR/core/src/default.rs:LL:COL
|
||||
|
|
||||
LL | fn default() -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -7,11 +7,6 @@ LL | #[derive(Hash)]
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ the trait `Hash` is not implemented for `Error`
|
||||
|
|
||||
note: required by `std::hash::Hash::hash`
|
||||
--> $SRC_DIR/core/src/hash/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn hash<H: Hasher>(&self, state: &mut H);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -7,11 +7,6 @@ LL | #[derive(Hash)]
|
||||
LL | Error
|
||||
| ^^^^^ the trait `Hash` is not implemented for `Error`
|
||||
|
|
||||
note: required by `std::hash::Hash::hash`
|
||||
--> $SRC_DIR/core/src/hash/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn hash<H: Hasher>(&self, state: &mut H);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -7,11 +7,6 @@ LL | struct Struct {
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ the trait `Hash` is not implemented for `Error`
|
||||
|
|
||||
note: required by `std::hash::Hash::hash`
|
||||
--> $SRC_DIR/core/src/hash/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn hash<H: Hasher>(&self, state: &mut H);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -7,11 +7,6 @@ LL | struct Struct(
|
||||
LL | Error
|
||||
| ^^^^^ the trait `Hash` is not implemented for `Error`
|
||||
|
|
||||
note: required by `std::hash::Hash::hash`
|
||||
--> $SRC_DIR/core/src/hash/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn hash<H: Hasher>(&self, state: &mut H);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -7,11 +7,6 @@ LL | #[derive(Ord,Eq,PartialOrd,PartialEq)]
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ the trait `Ord` is not implemented for `Error`
|
||||
|
|
||||
note: required by `std::cmp::Ord::cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn cmp(&self, other: &Self) -> Ordering;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -7,11 +7,6 @@ LL | #[derive(Ord,Eq,PartialOrd,PartialEq)]
|
||||
LL | Error
|
||||
| ^^^^^ the trait `Ord` is not implemented for `Error`
|
||||
|
|
||||
note: required by `std::cmp::Ord::cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn cmp(&self, other: &Self) -> Ordering;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -7,11 +7,6 @@ LL | struct Struct {
|
||||
LL | x: Error
|
||||
| ^^^^^^^^ the trait `Ord` is not implemented for `Error`
|
||||
|
|
||||
note: required by `std::cmp::Ord::cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn cmp(&self, other: &Self) -> Ordering;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -7,11 +7,6 @@ LL | struct Struct(
|
||||
LL | Error
|
||||
| ^^^^^ the trait `Ord` is not implemented for `Error`
|
||||
|
|
||||
note: required by `std::cmp::Ord::cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn cmp(&self, other: &Self) -> Ordering;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -8,11 +8,6 @@ LL | x: Error
|
||||
| ^^^^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
|
|
||||
= help: the trait `PartialOrd` is not implemented for `Error`
|
||||
note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -8,11 +8,6 @@ LL | Error
|
||||
| ^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
|
|
||||
= help: the trait `PartialOrd` is not implemented for `Error`
|
||||
note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -8,11 +8,6 @@ LL | x: Error
|
||||
| ^^^^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
|
|
||||
= help: the trait `PartialOrd` is not implemented for `Error`
|
||||
note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -8,11 +8,6 @@ LL | Error
|
||||
| ^^^^^ no implementation for `Error < Error` and `Error > Error`
|
||||
|
|
||||
= help: the trait `PartialOrd` is not implemented for `Error`
|
||||
note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -47,11 +47,6 @@ LL | struct C {
|
||||
LL | x: NoCloneOrEq
|
||||
| ^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NoCloneOrEq`
|
||||
|
|
||||
note: required by `clone`
|
||||
--> $SRC_DIR/core/src/clone.rs:LL:COL
|
||||
|
|
||||
LL | fn clone(&self) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
@ -7,11 +7,6 @@ LL | f1.foo(1usize);
|
||||
= help: the following implementations were found:
|
||||
<Bar as Foo<i32>>
|
||||
<Bar as Foo<u8>>
|
||||
note: required by `Foo::foo`
|
||||
--> $DIR/issue-21659-show-relevant-trait-impls-1.rs:2:5
|
||||
|
|
||||
LL | fn foo(&self, a: A) -> A {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -10,11 +10,6 @@ LL | f1.foo(1usize);
|
||||
<Bar as Foo<i8>>
|
||||
<Bar as Foo<u16>>
|
||||
and 2 others
|
||||
note: required by `Foo::foo`
|
||||
--> $DIR/issue-21659-show-relevant-trait-impls-2.rs:2:5
|
||||
|
|
||||
LL | fn foo(&self, a: A) -> A {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -12,11 +12,6 @@ LL | Foo::<i32>::bar(&1i8);
|
||||
<i8 as Foo<u32>>
|
||||
<i8 as Foo<u64>>
|
||||
<i8 as Foo<u8>>
|
||||
note: required by `Foo::bar`
|
||||
--> $DIR/issue-39802-show-5-trait-impls.rs:2:5
|
||||
|
|
||||
LL | fn bar(&self){}
|
||||
| ^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `u8: Foo<i32>` is not satisfied
|
||||
--> $DIR/issue-39802-show-5-trait-impls.rs:25:21
|
||||
@ -31,11 +26,6 @@ LL | Foo::<i32>::bar(&1u8);
|
||||
<u8 as Foo<u16>>
|
||||
<u8 as Foo<u32>>
|
||||
<u8 as Foo<u64>>
|
||||
note: required by `Foo::bar`
|
||||
--> $DIR/issue-39802-show-5-trait-impls.rs:2:5
|
||||
|
|
||||
LL | fn bar(&self){}
|
||||
| ^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `bool: Foo<i32>` is not satisfied
|
||||
--> $DIR/issue-39802-show-5-trait-impls.rs:26:21
|
||||
@ -51,11 +41,6 @@ LL | Foo::<i32>::bar(&true);
|
||||
<bool as Foo<u16>>
|
||||
<bool as Foo<u32>>
|
||||
and 2 others
|
||||
note: required by `Foo::bar`
|
||||
--> $DIR/issue-39802-show-5-trait-impls.rs:2:5
|
||||
|
|
||||
LL | fn bar(&self){}
|
||||
| ^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
@ -5,11 +5,6 @@ LL | let cont: u32 = Generator::create();
|
||||
| ^^^^^^^^^^^^^^^^^ cannot infer type
|
||||
|
|
||||
= note: cannot satisfy `_: Generator`
|
||||
note: required by `Generator::create`
|
||||
--> $DIR/E0283.rs:2:5
|
||||
|
|
||||
LL | fn create() -> u32;
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/E0283.rs:35:24
|
||||
@ -29,11 +24,6 @@ LL | impl Into<u32> for Impl {
|
||||
= note: and another `impl` found in the `core` crate:
|
||||
- impl<T, U> Into<U> for T
|
||||
where U: From<T>;
|
||||
note: required by `into`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn into(self) -> T;
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
@ -5,11 +5,6 @@ LL | format!("{:X}", "3");
|
||||
| ^^^ the trait `UpperHex` is not implemented for `str`
|
||||
|
|
||||
= note: required because of the requirements on the impl of `UpperHex` for `&str`
|
||||
note: required by `std::fmt::UpperHex::fmt`
|
||||
--> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn fmt(&self, f: &mut Formatter<'_>) -> Result;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the macro `$crate::__export::format_args` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -6,8 +6,6 @@ fn main() {
|
||||
//~| NOTE `&str` is not an iterator
|
||||
//~| HELP the trait `Iterator` is not implemented for `&str`
|
||||
//~| NOTE required because of the requirements on the impl of `IntoIterator` for `&str`
|
||||
//~| NOTE required by `into_iter`
|
||||
//~| NOTE in this expansion of desugaring of `for` loop
|
||||
//~| NOTE in this expansion of desugaring of `for` loop
|
||||
//~| NOTE in this expansion of desugaring of `for` loop
|
||||
//~| NOTE in this expansion of desugaring of `for` loop
|
||||
|
@ -6,11 +6,6 @@ LL | for c in "asdf" {
|
||||
|
|
||||
= help: the trait `Iterator` is not implemented for `&str`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `&str`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -6,11 +6,6 @@ LL | for x in bogus {
|
||||
|
|
||||
= help: the trait `Iterator` is not implemented for `MyStruct`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `MyStruct`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -13,11 +13,6 @@ LL | yield || for i in 0 { }
|
||||
= help: the trait `Iterator` is not implemented for `{integer}`
|
||||
= note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `{integer}`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
@ -12,11 +12,6 @@ LL | impl<'a, T, S> Set<&'a [T]> for S where
|
||||
| ^^^^^^^^^^^^ ^
|
||||
= note: 128 redundant requirements hidden
|
||||
= note: required because of the requirements on the impl of `Set<&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[&[_]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]>` for `{integer}`
|
||||
note: required by `Set::contains`
|
||||
--> $DIR/issue-18400.rs:2:5
|
||||
|
|
||||
LL | fn contains(&self, _: T) -> bool;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -6,11 +6,6 @@ LL | for item in *things { *item = 0 }
|
||||
|
|
||||
= note: the trait bound `dyn Iterator<Item = &'a mut u8>: IntoIterator` is not satisfied
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `dyn Iterator<Item = &'a mut u8>`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
help: consider mutably borrowing here
|
||||
|
|
||||
LL | for item in &mut *things { *item = 0 }
|
||||
|
@ -6,11 +6,6 @@ LL | #[derive(Hash)]
|
||||
LL | struct Foo(Bar);
|
||||
| ^^^ the trait `Hash` is not implemented for `Bar`
|
||||
|
|
||||
note: required by `std::hash::Hash::hash`
|
||||
--> $SRC_DIR/core/src/hash/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn hash<H: Hasher>(&self, state: &mut H);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -7,11 +7,6 @@ LL | let _ = Iterator::next(&mut ());
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= help: the trait `Iterator` is not implemented for `()`
|
||||
note: required by `std::iter::Iterator::next`
|
||||
--> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
|
||||
|
|
||||
LL | fn next(&mut self) -> Option<Self::Item>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `bool` is not an iterator
|
||||
--> $DIR/issue-28098.rs:6:14
|
||||
@ -21,11 +16,6 @@ LL | for _ in false {}
|
||||
|
|
||||
= help: the trait `Iterator` is not implemented for `bool`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `bool`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `()` is not an iterator
|
||||
--> $DIR/issue-28098.rs:9:28
|
||||
@ -36,11 +26,6 @@ LL | let _ = Iterator::next(&mut ());
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= help: the trait `Iterator` is not implemented for `()`
|
||||
note: required by `std::iter::Iterator::next`
|
||||
--> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
|
||||
|
|
||||
LL | fn next(&mut self) -> Option<Self::Item>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `()` is not an iterator
|
||||
--> $DIR/issue-28098.rs:2:13
|
||||
@ -59,11 +44,6 @@ LL | let _ = Iterator::next(&mut ());
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= help: the trait `Iterator` is not implemented for `()`
|
||||
note: required by `std::iter::Iterator::next`
|
||||
--> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
|
||||
|
|
||||
LL | fn next(&mut self) -> Option<Self::Item>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `()` is not an iterator
|
||||
--> $DIR/issue-28098.rs:22:28
|
||||
@ -74,11 +54,6 @@ LL | let _ = Iterator::next(&mut ());
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= help: the trait `Iterator` is not implemented for `()`
|
||||
note: required by `std::iter::Iterator::next`
|
||||
--> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
|
||||
|
|
||||
LL | fn next(&mut self) -> Option<Self::Item>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `bool` is not an iterator
|
||||
--> $DIR/issue-28098.rs:25:14
|
||||
@ -88,11 +63,6 @@ LL | for _ in false {}
|
||||
|
|
||||
= help: the trait `Iterator` is not implemented for `bool`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `bool`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `()` is not an iterator
|
||||
--> $DIR/issue-28098.rs:18:13
|
||||
|
@ -11,11 +11,6 @@ LL | impl Foo for S5<u32> { fn xxx(&self) {} }
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
LL | impl Foo for S5<u64> { fn xxx(&self) {} }
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
note: required by `Foo::xxx`
|
||||
--> $DIR/issue-29147.rs:10:13
|
||||
|
|
||||
LL | trait Foo { fn xxx(&self); }
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -8,11 +8,6 @@ LL | Err(5)?;
|
||||
|
|
||||
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
|
||||
= note: required because of the requirements on the impl of `FromResidual<Result<Infallible, {integer}>>` for `Result<i32, ()>`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -22,11 +22,6 @@ LL | for _ in HashMap::new().iter().cloned() {}
|
||||
found tuple `(&_, &_)`
|
||||
= note: required because of the requirements on the impl of `Iterator` for `Cloned<std::collections::hash_map::Iter<'_, _, _>>`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `Cloned<std::collections::hash_map::Iter<'_, _, _>>`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _, _> as Iterator>::Item == &_`
|
||||
--> $DIR/issue-33941.rs:4:14
|
||||
@ -37,11 +32,6 @@ LL | for _ in HashMap::new().iter().cloned() {}
|
||||
= note: expected reference `&_`
|
||||
found tuple `(&_, &_)`
|
||||
= note: required because of the requirements on the impl of `Iterator` for `Cloned<std::collections::hash_map::Iter<'_, _, _>>`
|
||||
note: required by `std::iter::Iterator::next`
|
||||
--> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
|
||||
|
|
||||
LL | fn next(&mut self) -> Option<Self::Item>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
@ -7,11 +7,6 @@ LL | #[derive(PartialEq, PartialOrd)] struct Nope(Comparable);
|
||||
| in this derive macro expansion
|
||||
|
|
||||
= help: the trait `PartialOrd` is not implemented for `Comparable`
|
||||
note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -9,11 +9,6 @@ note: required because of the requirements on the impl of `Visit` for `()`
|
||||
|
|
||||
LL | impl Visit for () where
|
||||
| ^^^^^ ^^
|
||||
note: required by `Visit::visit`
|
||||
--> $DIR/issue-39970.rs:6:5
|
||||
|
|
||||
LL | fn visit() {}
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -11,11 +11,6 @@ LL | const ARR_LEN: usize = Tt::const_val::<[i8; 123]>();
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
|
||||
|
|
||||
= note: cannot satisfy `_: Tt`
|
||||
note: required by `Tt::const_val`
|
||||
--> $DIR/issue-54954.rs:5:5
|
||||
|
|
||||
LL | const fn const_val<T: Sized>() -> usize {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
@ -15,11 +15,6 @@ LL | fn new(slice: &[u8; Foo::SIZE]) -> Self;
|
||||
|
|
||||
= note: cannot satisfy `_: Foo`
|
||||
= note: associated constants cannot be accessed directly on a `trait`, they can only be accessed through a specific `impl`
|
||||
note: required by `Foo::SIZE`
|
||||
--> $DIR/issue-58022.rs:2:5
|
||||
|
|
||||
LL | const SIZE: usize;
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
@ -11,12 +11,6 @@ LL | _Func::< <() as _A>::AssocT >::func(());
|
||||
| ----------------------------------- ^^ the trait `_Func<_>` is not implemented for `()`
|
||||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by `_Func::func`
|
||||
--> $DIR/issue-66353.rs:4:5
|
||||
|
|
||||
LL | fn func(_: Self);
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
@ -18,11 +18,6 @@ LL | impl Test<u32> for u64 {
|
||||
...
|
||||
LL | impl Test<u64> for u64 {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
note: required by `Test::test`
|
||||
--> $DIR/issue-69455.rs:8:5
|
||||
|
|
||||
LL | fn test(self, rhs: Rhs) -> Self::Output;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
help: consider specifying the type argument in the method call
|
||||
|
|
||||
LL | println!("{}", 23u64.test(xs.iter().sum::<S>()));
|
||||
|
@ -7,11 +7,6 @@ LL | String::from("x".as_ref());
|
||||
= note: multiple `impl`s satisfying `String: From<&_>` found in the `alloc` crate:
|
||||
- impl<> From<&String> for String;
|
||||
- impl<> From<&str> for String;
|
||||
note: required by `from`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn from(_: T) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/issue-72690.rs:7:22
|
||||
@ -27,11 +22,6 @@ LL | String::from("x".as_ref());
|
||||
- impl AsRef<Path> for str;
|
||||
- impl AsRef<[u8]> for str;
|
||||
- impl AsRef<str> for str;
|
||||
note: required by `as_ref`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn as_ref(&self) -> &T;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0282]: type annotations needed
|
||||
--> $DIR/issue-72690.rs:12:6
|
||||
@ -48,11 +38,6 @@ LL | |x| String::from("x".as_ref());
|
||||
= note: multiple `impl`s satisfying `String: From<&_>` found in the `alloc` crate:
|
||||
- impl<> From<&String> for String;
|
||||
- impl<> From<&str> for String;
|
||||
note: required by `from`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn from(_: T) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/issue-72690.rs:12:26
|
||||
@ -68,11 +53,6 @@ LL | |x| String::from("x".as_ref());
|
||||
- impl AsRef<Path> for str;
|
||||
- impl AsRef<[u8]> for str;
|
||||
- impl AsRef<str> for str;
|
||||
note: required by `as_ref`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn as_ref(&self) -> &T;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed for `&T`
|
||||
--> $DIR/issue-72690.rs:18:17
|
||||
@ -87,11 +67,6 @@ LL | let _ = "x".as_ref();
|
||||
- impl AsRef<Path> for str;
|
||||
- impl AsRef<[u8]> for str;
|
||||
- impl AsRef<str> for str;
|
||||
note: required by `as_ref`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn as_ref(&self) -> &T;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/issue-72690.rs:22:5
|
||||
@ -102,11 +77,6 @@ LL | String::from("x".as_ref());
|
||||
= note: multiple `impl`s satisfying `String: From<&_>` found in the `alloc` crate:
|
||||
- impl<> From<&String> for String;
|
||||
- impl<> From<&str> for String;
|
||||
note: required by `from`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn from(_: T) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/issue-72690.rs:22:22
|
||||
@ -122,11 +92,6 @@ LL | String::from("x".as_ref());
|
||||
- impl AsRef<Path> for str;
|
||||
- impl AsRef<[u8]> for str;
|
||||
- impl AsRef<str> for str;
|
||||
note: required by `as_ref`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn as_ref(&self) -> &T;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/issue-72690.rs:29:5
|
||||
@ -137,11 +102,6 @@ LL | String::from("x".as_ref());
|
||||
= note: multiple `impl`s satisfying `String: From<&_>` found in the `alloc` crate:
|
||||
- impl<> From<&String> for String;
|
||||
- impl<> From<&str> for String;
|
||||
note: required by `from`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn from(_: T) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/issue-72690.rs:29:22
|
||||
@ -157,11 +117,6 @@ LL | String::from("x".as_ref());
|
||||
- impl AsRef<Path> for str;
|
||||
- impl AsRef<[u8]> for str;
|
||||
- impl AsRef<str> for str;
|
||||
note: required by `as_ref`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn as_ref(&self) -> &T;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/issue-72690.rs:38:5
|
||||
@ -172,11 +127,6 @@ LL | String::from("x".as_ref());
|
||||
= note: multiple `impl`s satisfying `String: From<&_>` found in the `alloc` crate:
|
||||
- impl<> From<&String> for String;
|
||||
- impl<> From<&str> for String;
|
||||
note: required by `from`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn from(_: T) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/issue-72690.rs:38:22
|
||||
@ -192,11 +142,6 @@ LL | String::from("x".as_ref());
|
||||
- impl AsRef<Path> for str;
|
||||
- impl AsRef<[u8]> for str;
|
||||
- impl AsRef<str> for str;
|
||||
note: required by `as_ref`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn as_ref(&self) -> &T;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/issue-72690.rs:47:5
|
||||
@ -207,11 +152,6 @@ LL | String::from("x".as_ref());
|
||||
= note: multiple `impl`s satisfying `String: From<&_>` found in the `alloc` crate:
|
||||
- impl<> From<&String> for String;
|
||||
- impl<> From<&str> for String;
|
||||
note: required by `from`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn from(_: T) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/issue-72690.rs:47:22
|
||||
@ -227,11 +167,6 @@ LL | String::from("x".as_ref());
|
||||
- impl AsRef<Path> for str;
|
||||
- impl AsRef<[u8]> for str;
|
||||
- impl AsRef<str> for str;
|
||||
note: required by `as_ref`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn as_ref(&self) -> &T;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/issue-72690.rs:54:5
|
||||
@ -242,11 +177,6 @@ LL | String::from("x".as_ref());
|
||||
= note: multiple `impl`s satisfying `String: From<&_>` found in the `alloc` crate:
|
||||
- impl<> From<&String> for String;
|
||||
- impl<> From<&str> for String;
|
||||
note: required by `from`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn from(_: T) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/issue-72690.rs:54:22
|
||||
@ -262,11 +192,6 @@ LL | String::from("x".as_ref());
|
||||
- impl AsRef<Path> for str;
|
||||
- impl AsRef<[u8]> for str;
|
||||
- impl AsRef<str> for str;
|
||||
note: required by `as_ref`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn as_ref(&self) -> &T;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/issue-72690.rs:63:5
|
||||
@ -277,11 +202,6 @@ LL | String::from("x".as_ref());
|
||||
= note: multiple `impl`s satisfying `String: From<&_>` found in the `alloc` crate:
|
||||
- impl<> From<&String> for String;
|
||||
- impl<> From<&str> for String;
|
||||
note: required by `from`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn from(_: T) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/issue-72690.rs:63:22
|
||||
@ -297,11 +217,6 @@ LL | String::from("x".as_ref());
|
||||
- impl AsRef<Path> for str;
|
||||
- impl AsRef<[u8]> for str;
|
||||
- impl AsRef<str> for str;
|
||||
note: required by `as_ref`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn as_ref(&self) -> &T;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 18 previous errors
|
||||
|
||||
|
@ -7,11 +7,6 @@ LL | for _ in 42 {}
|
||||
= help: the trait `Iterator` is not implemented for `{integer}`
|
||||
= note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `{integer}`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `u8` is not an iterator
|
||||
--> $DIR/integral.rs:4:14
|
||||
@ -22,11 +17,6 @@ LL | for _ in 42 as u8 {}
|
||||
= help: the trait `Iterator` is not implemented for `u8`
|
||||
= note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `u8`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `i8` is not an iterator
|
||||
--> $DIR/integral.rs:6:14
|
||||
@ -37,11 +27,6 @@ LL | for _ in 42 as i8 {}
|
||||
= help: the trait `Iterator` is not implemented for `i8`
|
||||
= note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `i8`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `u16` is not an iterator
|
||||
--> $DIR/integral.rs:8:14
|
||||
@ -52,11 +37,6 @@ LL | for _ in 42 as u16 {}
|
||||
= help: the trait `Iterator` is not implemented for `u16`
|
||||
= note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `u16`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `i16` is not an iterator
|
||||
--> $DIR/integral.rs:10:14
|
||||
@ -67,11 +47,6 @@ LL | for _ in 42 as i16 {}
|
||||
= help: the trait `Iterator` is not implemented for `i16`
|
||||
= note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `i16`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `u32` is not an iterator
|
||||
--> $DIR/integral.rs:12:14
|
||||
@ -82,11 +57,6 @@ LL | for _ in 42 as u32 {}
|
||||
= help: the trait `Iterator` is not implemented for `u32`
|
||||
= note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `u32`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `i32` is not an iterator
|
||||
--> $DIR/integral.rs:14:14
|
||||
@ -97,11 +67,6 @@ LL | for _ in 42 as i32 {}
|
||||
= help: the trait `Iterator` is not implemented for `i32`
|
||||
= note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `i32`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `u64` is not an iterator
|
||||
--> $DIR/integral.rs:16:14
|
||||
@ -112,11 +77,6 @@ LL | for _ in 42 as u64 {}
|
||||
= help: the trait `Iterator` is not implemented for `u64`
|
||||
= note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `u64`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `i64` is not an iterator
|
||||
--> $DIR/integral.rs:18:14
|
||||
@ -127,11 +87,6 @@ LL | for _ in 42 as i64 {}
|
||||
= help: the trait `Iterator` is not implemented for `i64`
|
||||
= note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `i64`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `usize` is not an iterator
|
||||
--> $DIR/integral.rs:20:14
|
||||
@ -142,11 +97,6 @@ LL | for _ in 42 as usize {}
|
||||
= help: the trait `Iterator` is not implemented for `usize`
|
||||
= note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `usize`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `isize` is not an iterator
|
||||
--> $DIR/integral.rs:22:14
|
||||
@ -157,11 +107,6 @@ LL | for _ in 42 as isize {}
|
||||
= help: the trait `Iterator` is not implemented for `isize`
|
||||
= note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `isize`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `{float}` is not an iterator
|
||||
--> $DIR/integral.rs:24:14
|
||||
@ -171,11 +116,6 @@ LL | for _ in 42.0 {}
|
||||
|
|
||||
= help: the trait `Iterator` is not implemented for `{float}`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `{float}`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 12 previous errors
|
||||
|
||||
|
@ -7,11 +7,6 @@ LL | for _ in ..10 {}
|
||||
= help: the trait `Iterator` is not implemented for `RangeTo<{integer}>`
|
||||
= note: `..end` is a `RangeTo`, which cannot be iterated on; you might have meant to have a bounded `Range`: `0..end`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `RangeTo<{integer}>`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `RangeToInclusive<{integer}>` is not an iterator
|
||||
--> $DIR/ranges.rs:4:14
|
||||
@ -22,11 +17,6 @@ LL | for _ in ..=10 {}
|
||||
= help: the trait `Iterator` is not implemented for `RangeToInclusive<{integer}>`
|
||||
= note: `..=end` is a `RangeToInclusive`, which cannot be iterated on; you might have meant to have a bounded `RangeInclusive`: `0..=end`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `RangeToInclusive<{integer}>`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
@ -6,11 +6,6 @@ LL | for _ in "".to_owned() {}
|
||||
|
|
||||
= help: the trait `Iterator` is not implemented for `String`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `String`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `&str` is not an iterator
|
||||
--> $DIR/string.rs:4:14
|
||||
@ -20,11 +15,6 @@ LL | for _ in "" {}
|
||||
|
|
||||
= help: the trait `Iterator` is not implemented for `&str`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `&str`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
@ -20,11 +20,6 @@ LL | impl Foo for Vec<usize> {
|
||||
...
|
||||
LL | impl Foo for Vec<isize> {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
note: required by `Foo::foo`
|
||||
--> $DIR/method-ambig-one-trait-unknown-int-type.rs:6:5
|
||||
|
|
||||
LL | fn foo(&self) -> isize;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/method-ambig-one-trait-unknown-int-type.rs:33:20
|
||||
|
@ -6,11 +6,6 @@ LL | <E as From<_>>::from(never);
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<E as From<!>>
|
||||
note: required by `from`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn from(_: T) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -11,11 +11,6 @@ LL | let hello = hello.clone();
|
||||
| ^^^^^ within `[closure@$DIR/not-clone-closure.rs:7:17: 9:6]`, the trait `Clone` is not implemented for `S`
|
||||
|
|
||||
= note: required because it appears within the type `[closure@$DIR/not-clone-closure.rs:7:17: 9:6]`
|
||||
note: required by `clone`
|
||||
--> $SRC_DIR/core/src/clone.rs:LL:COL
|
||||
|
|
||||
LL | fn clone(&self) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -7,11 +7,6 @@ LL | Index::index(&[] as &[i32], 2u32);
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= help: the trait `Index<u32>` is not implemented for `[i32]`
|
||||
note: required by `Index::index`
|
||||
--> $DIR/multiple-impls.rs:12:5
|
||||
|
|
||||
LL | fn index(&self, index: Idx) -> &Self::Output;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `[i32]: Index<Foo<u32>>` is not satisfied
|
||||
--> $DIR/multiple-impls.rs:36:18
|
||||
@ -22,11 +17,6 @@ LL | Index::index(&[] as &[i32], Foo(2u32));
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= help: the trait `Index<Foo<u32>>` is not implemented for `[i32]`
|
||||
note: required by `Index::index`
|
||||
--> $DIR/multiple-impls.rs:12:5
|
||||
|
|
||||
LL | fn index(&self, index: Idx) -> &Self::Output;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `[i32]: Index<Bar<u32>>` is not satisfied
|
||||
--> $DIR/multiple-impls.rs:39:18
|
||||
@ -37,11 +27,6 @@ LL | Index::index(&[] as &[i32], Bar(2u32));
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= help: the trait `Index<Bar<u32>>` is not implemented for `[i32]`
|
||||
note: required by `Index::index`
|
||||
--> $DIR/multiple-impls.rs:12:5
|
||||
|
|
||||
LL | fn index(&self, index: Idx) -> &Self::Output;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `[i32]: Index<u32>` is not satisfied
|
||||
--> $DIR/multiple-impls.rs:33:5
|
||||
|
@ -7,11 +7,6 @@ LL | Index::<u32>::index(&[1, 2, 3] as &[i32], 2u32);
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= help: the trait `Index<u32>` is not implemented for `[i32]`
|
||||
note: required by `Index::index`
|
||||
--> $DIR/on-impl.rs:9:5
|
||||
|
|
||||
LL | fn index(&self, index: Idx) -> &Self::Output;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `[i32]: Index<u32>` is not satisfied
|
||||
--> $DIR/on-impl.rs:22:5
|
||||
|
@ -25,11 +25,6 @@ LL | | }.hi() {
|
||||
|
|
||||
= help: the trait `Iterator` is not implemented for `bool`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `bool`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
@ -12,11 +12,6 @@ LL | for i in false..true {}
|
||||
|
|
||||
= note: required because of the requirements on the impl of `Iterator` for `std::ops::Range<bool>`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `std::ops::Range<bool>`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the size for values of type `[{integer}]` cannot be known at compilation time
|
||||
--> $DIR/range-1.rs:14:17
|
||||
|
@ -8,11 +8,6 @@ LL | a: Range<usize>,
|
||||
| ^^^^^^^^^^^^^^^ no implementation for `std::ops::Range<usize> < std::ops::Range<usize>` and `std::ops::Range<usize> > std::ops::Range<usize>`
|
||||
|
|
||||
= help: the trait `PartialOrd` is not implemented for `std::ops::Range<usize>`
|
||||
note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `std::ops::RangeTo<usize>` with `std::ops::RangeTo<usize>`
|
||||
@ -25,11 +20,6 @@ LL | b: RangeTo<usize>,
|
||||
| ^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeTo<usize> < std::ops::RangeTo<usize>` and `std::ops::RangeTo<usize> > std::ops::RangeTo<usize>`
|
||||
|
|
||||
= help: the trait `PartialOrd` is not implemented for `std::ops::RangeTo<usize>`
|
||||
note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `std::ops::RangeFrom<usize>` with `std::ops::RangeFrom<usize>`
|
||||
@ -42,11 +32,6 @@ LL | c: RangeFrom<usize>,
|
||||
| ^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeFrom<usize> < std::ops::RangeFrom<usize>` and `std::ops::RangeFrom<usize> > std::ops::RangeFrom<usize>`
|
||||
|
|
||||
= help: the trait `PartialOrd` is not implemented for `std::ops::RangeFrom<usize>`
|
||||
note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `std::ops::RangeFull` with `std::ops::RangeFull`
|
||||
@ -59,11 +44,6 @@ LL | d: RangeFull,
|
||||
| ^^^^^^^^^^^^ no implementation for `std::ops::RangeFull < std::ops::RangeFull` and `std::ops::RangeFull > std::ops::RangeFull`
|
||||
|
|
||||
= help: the trait `PartialOrd` is not implemented for `std::ops::RangeFull`
|
||||
note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `std::ops::RangeInclusive<usize>` with `std::ops::RangeInclusive<usize>`
|
||||
@ -76,11 +56,6 @@ LL | e: RangeInclusive<usize>,
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeInclusive<usize> < std::ops::RangeInclusive<usize>` and `std::ops::RangeInclusive<usize> > std::ops::RangeInclusive<usize>`
|
||||
|
|
||||
= help: the trait `PartialOrd` is not implemented for `std::ops::RangeInclusive<usize>`
|
||||
note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: can't compare `std::ops::RangeToInclusive<usize>` with `std::ops::RangeToInclusive<usize>`
|
||||
@ -93,11 +68,6 @@ LL | f: RangeToInclusive<usize>,
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeToInclusive<usize> < std::ops::RangeToInclusive<usize>` and `std::ops::RangeToInclusive<usize> > std::ops::RangeToInclusive<usize>`
|
||||
|
|
||||
= help: the trait `PartialOrd` is not implemented for `std::ops::RangeToInclusive<usize>`
|
||||
note: required by `std::cmp::PartialOrd::partial_cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `std::ops::Range<usize>: Ord` is not satisfied
|
||||
@ -109,11 +79,6 @@ LL | struct AllTheRanges {
|
||||
LL | a: Range<usize>,
|
||||
| ^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::Range<usize>`
|
||||
|
|
||||
note: required by `std::cmp::Ord::cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn cmp(&self, other: &Self) -> Ordering;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `std::ops::RangeTo<usize>: Ord` is not satisfied
|
||||
@ -125,11 +90,6 @@ LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
|
||||
LL | b: RangeTo<usize>,
|
||||
| ^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeTo<usize>`
|
||||
|
|
||||
note: required by `std::cmp::Ord::cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn cmp(&self, other: &Self) -> Ordering;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `std::ops::RangeFrom<usize>: Ord` is not satisfied
|
||||
@ -141,11 +101,6 @@ LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
|
||||
LL | c: RangeFrom<usize>,
|
||||
| ^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeFrom<usize>`
|
||||
|
|
||||
note: required by `std::cmp::Ord::cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn cmp(&self, other: &Self) -> Ordering;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `std::ops::RangeFull: Ord` is not satisfied
|
||||
@ -157,11 +112,6 @@ LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
|
||||
LL | d: RangeFull,
|
||||
| ^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeFull`
|
||||
|
|
||||
note: required by `std::cmp::Ord::cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn cmp(&self, other: &Self) -> Ordering;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `std::ops::RangeInclusive<usize>: Ord` is not satisfied
|
||||
@ -173,11 +123,6 @@ LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
|
||||
LL | e: RangeInclusive<usize>,
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeInclusive<usize>`
|
||||
|
|
||||
note: required by `std::cmp::Ord::cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn cmp(&self, other: &Self) -> Ordering;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `std::ops::RangeToInclusive<usize>: Ord` is not satisfied
|
||||
@ -189,11 +134,6 @@ LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
|
||||
LL | f: RangeToInclusive<usize>,
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeToInclusive<usize>`
|
||||
|
|
||||
note: required by `std::cmp::Ord::cmp`
|
||||
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
||||
|
|
||||
LL | fn cmp(&self, other: &Self) -> Ordering;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 12 previous errors
|
||||
|
@ -544,11 +544,6 @@ LL | if (let 0 = 0)? {}
|
||||
| ^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool`
|
||||
|
|
||||
= help: the trait `Try` is not implemented for `bool`
|
||||
note: required by `branch`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn branch(self) -> ControlFlow<Self::Residual, Self::Output>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
|
||||
--> $DIR/disallowed-positions.rs:44:19
|
||||
@ -566,11 +561,6 @@ LL | | }
|
||||
| |_- this function should return `Result` or `Option` to accept `?`
|
||||
|
|
||||
= help: the trait `FromResidual<_>` is not implemented for `()`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/disallowed-positions.rs:54:8
|
||||
@ -710,11 +700,6 @@ LL | if let 0 = 0? {}
|
||||
| ^^ the `?` operator cannot be applied to type `{integer}`
|
||||
|
|
||||
= help: the trait `Try` is not implemented for `{integer}`
|
||||
note: required by `branch`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn branch(self) -> ControlFlow<Self::Residual, Self::Output>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/disallowed-positions.rs:94:11
|
||||
@ -747,11 +732,6 @@ LL | while (let 0 = 0)? {}
|
||||
| ^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool`
|
||||
|
|
||||
= help: the trait `Try` is not implemented for `bool`
|
||||
note: required by `branch`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn branch(self) -> ControlFlow<Self::Residual, Self::Output>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
|
||||
--> $DIR/disallowed-positions.rs:108:22
|
||||
@ -769,11 +749,6 @@ LL | | }
|
||||
| |_- this function should return `Result` or `Option` to accept `?`
|
||||
|
|
||||
= help: the trait `FromResidual<_>` is not implemented for `()`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/disallowed-positions.rs:118:11
|
||||
@ -913,11 +888,6 @@ LL | while let 0 = 0? {}
|
||||
| ^^ the `?` operator cannot be applied to type `{integer}`
|
||||
|
|
||||
= help: the trait `Try` is not implemented for `{integer}`
|
||||
note: required by `branch`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn branch(self) -> ControlFlow<Self::Residual, Self::Output>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0614]: type `bool` cannot be dereferenced
|
||||
--> $DIR/disallowed-positions.rs:171:5
|
||||
@ -938,11 +908,6 @@ LL | (let 0 = 0)?;
|
||||
| ^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool`
|
||||
|
|
||||
= help: the trait `Try` is not implemented for `bool`
|
||||
note: required by `branch`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn branch(self) -> ControlFlow<Self::Residual, Self::Output>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
|
||||
--> $DIR/disallowed-positions.rs:181:16
|
||||
@ -960,11 +925,6 @@ LL | | }
|
||||
| |_- this function should return `Result` or `Option` to accept `?`
|
||||
|
|
||||
= help: the trait `FromResidual<_>` is not implemented for `()`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/disallowed-positions.rs:196:10
|
||||
@ -993,11 +953,6 @@ LL | let 0 = 0?;
|
||||
| ^^ the `?` operator cannot be applied to type `{integer}`
|
||||
|
|
||||
= help: the trait `Try` is not implemented for `{integer}`
|
||||
note: required by `branch`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn branch(self) -> ControlFlow<Self::Residual, Self::Output>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 103 previous errors; 1 warning emitted
|
||||
|
||||
|
@ -3,12 +3,6 @@ error[E0277]: the trait bound `u8: Tr` is not satisfied
|
||||
|
|
||||
LL | let a: u8 = Tr::C;
|
||||
| ^^^^^ the trait `Tr` is not implemented for `u8`
|
||||
|
|
||||
note: required by `Tr::C`
|
||||
--> $DIR/issue-29595.rs:2:5
|
||||
|
|
||||
LL | const C: Self;
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -24,11 +24,6 @@ note: required because of the requirements on the impl of `ToA<T>` for `U`
|
||||
|
|
||||
LL | impl<T, U> ToA<U> for T
|
||||
| ^^^^^^ ^
|
||||
note: required by `ToA::to`
|
||||
--> $DIR/issue-39448.rs:31:5
|
||||
|
|
||||
LL | fn to(self) -> T;
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error; 1 warning emitted
|
||||
|
||||
|
@ -82,11 +82,6 @@ note: required because of the requirements on the impl of `Foo<'_, '_, u8>` for
|
||||
|
|
||||
LL | impl<'a,'b,T,S> Foo<'a, 'b, S> for T {}
|
||||
| ^^^^^^^^^^^^^^ ^
|
||||
note: required by `Foo::bar`
|
||||
--> $DIR/substs-ppaux.rs:7:5
|
||||
|
|
||||
LL | fn bar<'a, T>() where T: 'a {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
|
@ -82,11 +82,6 @@ note: required because of the requirements on the impl of `Foo<'_#0r, '_#1r, u8>
|
||||
|
|
||||
LL | impl<'a,'b,T,S> Foo<'a, 'b, S> for T {}
|
||||
| ^^^^^^^^^^^^^^ ^
|
||||
note: required by `Foo::bar`
|
||||
--> $DIR/substs-ppaux.rs:7:5
|
||||
|
|
||||
LL | fn bar<'a, T>() where T: 'a {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
|
@ -8,11 +8,6 @@ LL | let _: &[i8] = data.into();
|
||||
<[T; LANES] as From<Simd<T, LANES>>>
|
||||
<[bool; LANES] as From<Mask<T, LANES>>>
|
||||
= note: required because of the requirements on the impl of `Into<&[i8]>` for `&[u8]`
|
||||
note: required by `into`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn into(self) -> T;
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -5,11 +5,6 @@ LL | SadGirl {}.call()?;
|
||||
| ^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future<Output = Result<(), ()>>`
|
||||
|
|
||||
= help: the trait `Try` is not implemented for `impl Future<Output = Result<(), ()>>`
|
||||
note: required by `branch`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn branch(self) -> ControlFlow<Self::Residual, Self::Output>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
help: consider `await`ing on the `Future`
|
||||
|
|
||||
LL | SadGirl {}.call().await?;
|
||||
|
@ -6,11 +6,6 @@ LL | for _ in v[1..] {
|
||||
|
|
||||
= note: the trait bound `[i32]: IntoIterator` is not satisfied
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `[i32]`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
help: consider borrowing here
|
||||
|
|
||||
LL | for _ in &v[1..] {
|
||||
@ -26,11 +21,6 @@ LL | for _ in v[1..] {
|
||||
|
|
||||
= note: the trait bound `[i32]: IntoIterator` is not satisfied
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `[i32]`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
help: consider borrowing here
|
||||
|
|
||||
LL | for _ in &v[1..] {
|
||||
@ -46,11 +36,6 @@ LL | for i2 in v2[1..] {
|
||||
|
|
||||
= note: the trait bound `[K]: IntoIterator` is not satisfied
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `[K]`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
help: consider borrowing here
|
||||
|
|
||||
LL | for i2 in &v2[1..] {
|
||||
@ -66,11 +51,6 @@ LL | for i2 in v2[1..] {
|
||||
|
|
||||
= note: the trait bound `[K]: IntoIterator` is not satisfied
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `[K]`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
help: consider borrowing here
|
||||
|
|
||||
LL | for i2 in &v2[1..] {
|
||||
|
@ -9,11 +9,6 @@ LL | for (i, _) in &v.iter().enumerate() {
|
||||
|
|
||||
= help: the trait `Iterator` is not implemented for `&Enumerate<std::slice::Iter<'_, {integer}>>`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `&Enumerate<std::slice::Iter<'_, {integer}>>`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -9,11 +9,6 @@ LL | for (i, _) in & & & & &v.iter().enumerate() {
|
||||
|
|
||||
= help: the trait `Iterator` is not implemented for `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -13,11 +13,6 @@ LL | | .enumerate() {
|
||||
|
|
||||
= help: the trait `Iterator` is not implemented for `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>`
|
||||
= note: required because of the requirements on the impl of `IntoIterator` for `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>`
|
||||
note: required by `into_iter`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | fn into_iter(self) -> Self::IntoIter;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -3,12 +3,6 @@ error[E0277]: the trait bound `dyn CompareToInts: CompareTo<i32>` is not satisfi
|
||||
|
|
||||
LL | c.same_as(22)
|
||||
| ^^^^^^^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts`
|
||||
|
|
||||
note: required by `CompareTo::same_as`
|
||||
--> $DIR/repeated-supertrait-ambig.rs:9:5
|
||||
|
|
||||
LL | fn same_as(&self, t: T) -> bool;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied
|
||||
--> $DIR/repeated-supertrait-ambig.rs:30:7
|
||||
@ -16,11 +10,6 @@ error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied
|
||||
LL | c.same_as(22)
|
||||
| ^^^^^^^ the trait `CompareTo<i32>` is not implemented for `C`
|
||||
|
|
||||
note: required by `CompareTo::same_as`
|
||||
--> $DIR/repeated-supertrait-ambig.rs:9:5
|
||||
|
|
||||
LL | fn same_as(&self, t: T) -> bool;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
help: consider further restricting this bound
|
||||
|
|
||||
LL | fn with_trait<C:CompareToInts + CompareTo<i32>>(c: &C) -> bool {
|
||||
@ -31,12 +20,6 @@ error[E0277]: the trait bound `dyn CompareToInts: CompareTo<i32>` is not satisfi
|
||||
|
|
||||
LL | <dyn CompareToInts>::same_as(c, 22)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts`
|
||||
|
|
||||
note: required by `CompareTo::same_as`
|
||||
--> $DIR/repeated-supertrait-ambig.rs:9:5
|
||||
|
|
||||
LL | fn same_as(&self, t: T) -> bool;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied
|
||||
--> $DIR/repeated-supertrait-ambig.rs:38:5
|
||||
@ -44,11 +27,6 @@ error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied
|
||||
LL | CompareTo::same_as(c, 22)
|
||||
| ^^^^^^^^^^^^^^^^^^ the trait `CompareTo<i32>` is not implemented for `C`
|
||||
|
|
||||
note: required by `CompareTo::same_as`
|
||||
--> $DIR/repeated-supertrait-ambig.rs:9:5
|
||||
|
|
||||
LL | fn same_as(&self, t: T) -> bool;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
help: consider further restricting this bound
|
||||
|
|
||||
LL | fn with_ufcs2<C:CompareToInts + CompareTo<i32>>(c: &C) -> bool {
|
||||
@ -63,11 +41,6 @@ LL | assert_eq!(22_i64.same_as(22), true);
|
||||
= help: the following implementations were found:
|
||||
<i64 as CompareTo<i64>>
|
||||
<i64 as CompareTo<u64>>
|
||||
note: required by `CompareTo::same_as`
|
||||
--> $DIR/repeated-supertrait-ambig.rs:9:5
|
||||
|
|
||||
LL | fn same_as(&self, t: T) -> bool;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
|
@ -8,11 +8,6 @@ LL | the_foos: Vec<Foo>,
|
||||
| ^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `Foo`
|
||||
|
|
||||
= note: required because of the requirements on the impl of `Clone` for `Vec<Foo>`
|
||||
note: required by `clone`
|
||||
--> $SRC_DIR/core/src/clone.rs:LL:COL
|
||||
|
|
||||
LL | fn clone(&self) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -34,11 +34,6 @@ LL | opts.get(opt.as_ref());
|
||||
- impl AsRef<Path> for String;
|
||||
- impl AsRef<[u8]> for String;
|
||||
- impl AsRef<str> for String;
|
||||
note: required by `as_ref`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn as_ref(&self) -> &T;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
help: use the fully qualified path for the potential candidates
|
||||
|
|
||||
LL | opts.get(<String as AsRef<OsStr>>::as_ref(opt));
|
||||
@ -64,11 +59,6 @@ LL | let ips: Vec<_> = (0..100_000).map(|_| u32::from(0u32.into())).collect(
|
||||
- impl From<bool> for u32;
|
||||
- impl From<char> for u32;
|
||||
and 3 more
|
||||
note: required by `from`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn from(_: T) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed for `Box<T>`
|
||||
--> $DIR/issue-77982.rs:36:16
|
||||
@ -85,11 +75,6 @@ LL | impl Foo<'static, u32> for () {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | impl<'a> Foo<'a, i16> for () {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
note: required by `Foo::foo`
|
||||
--> $DIR/issue-77982.rs:18:5
|
||||
|
|
||||
LL | fn foo(&self) -> Box<T> {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed for `Box<T>`
|
||||
--> $DIR/issue-77982.rs:40:19
|
||||
@ -106,11 +91,6 @@ LL | impl<'a> Bar<'static, u32> for &'a () {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | impl<'a> Bar<'a, i16> for &'a () {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
note: required by `Bar::bar`
|
||||
--> $DIR/issue-77982.rs:24:5
|
||||
|
|
||||
LL | fn bar(&self) -> Box<T> {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
|
@ -10,11 +10,6 @@ LL | bar: &'a mut T
|
||||
= help: the following implementations were found:
|
||||
<&T as Clone>
|
||||
= note: `Clone` is implemented for `&T`, but not for `&mut T`
|
||||
note: required by `clone`
|
||||
--> $SRC_DIR/core/src/clone.rs:LL:COL
|
||||
|
|
||||
LL | fn clone(&self) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -8,11 +8,6 @@ LL | <() as MyTrait>::foo(&());
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<() as MyTrait>
|
||||
note: required by `MyTrait::foo`
|
||||
--> $DIR/no-use.rs:5:17
|
||||
|
|
||||
LL | trait MyTrait { fn foo(&self); }
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -5,11 +5,6 @@ LL | let _f: base::Foo = base::HasNew::new();
|
||||
| ^^^^^^^^^^^^^^^^^ cannot infer type
|
||||
|
|
||||
= note: cannot satisfy `_: HasNew<Foo>`
|
||||
note: required by `HasNew::new`
|
||||
--> $DIR/static-method-generic-inference.rs:8:9
|
||||
|
|
||||
LL | fn new() -> T;
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -49,11 +49,6 @@ error[E0277]: the trait bound `u64: From<T>` is not satisfied
|
||||
LL | <u64 as From<T>>::from;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `From<T>` is not implemented for `u64`
|
||||
|
|
||||
note: required by `from`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn from(_: T) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement
|
||||
|
|
||||
LL | fn check<T: Iterator, U: ?Sized>() where u64: From<T> {
|
||||
@ -65,11 +60,6 @@ error[E0277]: the trait bound `u64: From<<T as Iterator>::Item>` is not satisfie
|
||||
LL | <u64 as From<<T as Iterator>::Item>>::from;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<<T as Iterator>::Item>` is not implemented for `u64`
|
||||
|
|
||||
note: required by `from`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn from(_: T) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement
|
||||
|
|
||||
LL | fn check<T: Iterator, U: ?Sized>() where u64: From<<T as Iterator>::Item> {
|
||||
@ -80,12 +70,6 @@ error[E0277]: the trait bound `Misc<_>: From<T>` is not satisfied
|
||||
|
|
||||
LL | <Misc<_> as From<T>>::from;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<T>` is not implemented for `Misc<_>`
|
||||
|
|
||||
note: required by `from`
|
||||
--> $SRC_DIR/core/src/convert/mod.rs:LL:COL
|
||||
|
|
||||
LL | fn from(_: T) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the size for values of type `[T]` cannot be known at compilation time
|
||||
--> $DIR/suggest-where-clause.rs:28:20
|
||||
|
@ -92,11 +92,6 @@ LL | impl bar for i32 { fn dup(&self) -> i32 { *self } fn blah<X>(&self) {} }
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
LL | impl bar for u32 { fn dup(&self) -> u32 { *self } fn blah<X>(&self) {} }
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
note: required by `bar::dup`
|
||||
--> $DIR/test-2.rs:4:13
|
||||
|
|
||||
LL | trait bar { fn dup(&self) -> Self; fn blah<X>(&self); }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/test-2.rs:11:8
|
||||
@ -111,11 +106,6 @@ LL | impl bar for i32 { fn dup(&self) -> i32 { *self } fn blah<X>(&self) {} }
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
LL | impl bar for u32 { fn dup(&self) -> u32 { *self } fn blah<X>(&self) {} }
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
note: required by `bar::blah`
|
||||
--> $DIR/test-2.rs:4:36
|
||||
|
|
||||
LL | trait bar { fn dup(&self) -> Self; fn blah<X>(&self); }
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 7 previous errors
|
||||
|
||||
|
@ -27,12 +27,6 @@ LL | Foo::test(&4i32);
|
||||
| --------- ^^^^^ the trait `Foo` is not implemented for `i32`
|
||||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by `Foo::test`
|
||||
--> $DIR/trivial-bounds-leak.rs:5:5
|
||||
|
|
||||
LL | fn test(&self);
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `i32: Foo` is not satisfied
|
||||
--> $DIR/trivial-bounds-leak.rs:26:22
|
||||
|
@ -8,11 +8,6 @@ LL | Err("")?;
|
||||
= help: the following implementations were found:
|
||||
<TryFromSliceError as From<Infallible>>
|
||||
= note: required because of the requirements on the impl of `FromResidual<Result<Infallible, &str>>` for `Result<u32, TryFromSliceError>`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0271]: type mismatch resolving `<Result<i32, i32> as Try>::Output == &str`
|
||||
--> $DIR/try-block-bad-type.rs:12:9
|
||||
@ -33,11 +28,6 @@ LL | let res: () = try { };
|
||||
| ^ could not wrap the final value of the block as `()` doesn't implement `Try`
|
||||
|
|
||||
= help: the trait `Try` is not implemented for `()`
|
||||
note: required by `from_output`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_output(output: Self::Output) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: a `try` block must return `Result` or `Option` (or another type that implements `Try`)
|
||||
--> $DIR/try-block-bad-type.rs:20:26
|
||||
@ -46,11 +36,6 @@ LL | let res: i32 = try { 5 };
|
||||
| ^ could not wrap the final value of the block as `i32` doesn't implement `Try`
|
||||
|
|
||||
= help: the trait `Try` is not implemented for `i32`
|
||||
note: required by `from_output`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_output(output: Self::Output) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
|
@ -5,11 +5,6 @@ LL | while try { false } {}
|
||||
| ^^^^^ could not wrap the final value of the block as `bool` doesn't implement `Try`
|
||||
|
|
||||
= help: the trait `Try` is not implemented for `bool`
|
||||
note: required by `from_output`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_output(output: Self::Output) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -11,11 +11,6 @@ LL | Ok(Err(123_i32)?)
|
||||
<u8 as From<NonZeroU8>>
|
||||
<u8 as From<bool>>
|
||||
= note: required because of the requirements on the impl of `FromResidual<Result<Infallible, i32>>` for `Result<u64, u8>`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result`
|
||||
--> $DIR/bad-interconversion.rs:11:12
|
||||
@ -29,11 +24,6 @@ LL | | }
|
||||
| |_- this function returns a `Result`
|
||||
|
|
||||
= help: the trait `FromResidual<Option<Infallible>>` is not implemented for `Result<u64, String>`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be used on `Result`s in a function that returns `Result`
|
||||
--> $DIR/bad-interconversion.rs:17:31
|
||||
@ -46,11 +36,6 @@ LL | | }
|
||||
| |_- this function returns a `Result`
|
||||
|
|
||||
= help: the trait `FromResidual<ControlFlow<{integer}, Infallible>>` is not implemented for `Result<u64, String>`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be used on `Option`s, not `Result`s, in a function that returns `Option`
|
||||
--> $DIR/bad-interconversion.rs:22:22
|
||||
@ -63,11 +48,6 @@ LL | | }
|
||||
| |_- this function returns an `Option`
|
||||
|
|
||||
= help: the trait `FromResidual<Result<Infallible, &str>>` is not implemented for `Option<u16>`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be used on `Option`s in a function that returns `Option`
|
||||
--> $DIR/bad-interconversion.rs:27:33
|
||||
@ -80,11 +60,6 @@ LL | | }
|
||||
| |_- this function returns an `Option`
|
||||
|
|
||||
= help: the trait `FromResidual<ControlFlow<{integer}, Infallible>>` is not implemented for `Option<u64>`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be used on `ControlFlow`s in a function that returns `ControlFlow`
|
||||
--> $DIR/bad-interconversion.rs:32:39
|
||||
@ -97,11 +72,6 @@ LL | | }
|
||||
| |_- this function returns a `ControlFlow`
|
||||
|
|
||||
= help: the trait `FromResidual<Result<Infallible, &str>>` is not implemented for `ControlFlow<String>`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be used on `ControlFlow`s in a function that returns `ControlFlow`
|
||||
--> $DIR/bad-interconversion.rs:37:12
|
||||
@ -115,11 +85,6 @@ LL | | }
|
||||
| |_- this function returns a `ControlFlow`
|
||||
|
|
||||
= help: the trait `FromResidual<Option<Infallible>>` is not implemented for `ControlFlow<u64>`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator in a function that returns `ControlFlow<B, _>` can only be used on other `ControlFlow<B, _>`s (with the same Break type)
|
||||
--> $DIR/bad-interconversion.rs:43:29
|
||||
@ -134,11 +99,6 @@ LL | | }
|
||||
|
|
||||
= help: the trait `FromResidual<ControlFlow<u8, Infallible>>` is not implemented for `ControlFlow<i64>`
|
||||
= note: unlike `Result`, there's no `From`-conversion performed for `ControlFlow`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 8 previous errors
|
||||
|
||||
|
@ -10,11 +10,6 @@ LL | | }
|
||||
| |_- this function returns a `Result`
|
||||
|
|
||||
= help: the trait `FromResidual<Option<Infallible>>` is not implemented for `Result<(), ()>`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be used on `Option`s, not `Result`s, in a function that returns `Option`
|
||||
--> $DIR/option-to-result.rs:11:6
|
||||
@ -28,11 +23,6 @@ LL | | }
|
||||
| |_- this function returns an `Option`
|
||||
|
|
||||
= help: the trait `FromResidual<Result<Infallible, i32>>` is not implemented for `Option<i32>`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
@ -10,11 +10,6 @@ LL | | }
|
||||
| |_- this function should return `Result` or `Option` to accept `?`
|
||||
|
|
||||
= help: the trait `FromResidual<Option<Infallible>>` is not implemented for `u32`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`)
|
||||
--> $DIR/try-on-option-diagnostics.rs:14:10
|
||||
@ -29,11 +24,6 @@ LL | | };
|
||||
| |_____- this function should return `Result` or `Option` to accept `?`
|
||||
|
|
||||
= help: the trait `FromResidual<Option<Infallible>>` is not implemented for `{integer}`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`)
|
||||
--> $DIR/try-on-option-diagnostics.rs:26:14
|
||||
@ -46,11 +36,6 @@ LL | | }
|
||||
| |_________- this function should return `Result` or `Option` to accept `?`
|
||||
|
|
||||
= help: the trait `FromResidual<Option<Infallible>>` is not implemented for `()`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be used in a trait method that returns `Result` or `Option` (or another type that implements `FromResidual`)
|
||||
--> $DIR/try-on-option-diagnostics.rs:39:14
|
||||
@ -63,11 +48,6 @@ LL | | }
|
||||
| |_________- this function should return `Result` or `Option` to accept `?`
|
||||
|
|
||||
= help: the trait `FromResidual<Option<Infallible>>` is not implemented for `()`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
|
@ -10,11 +10,6 @@ LL | | }
|
||||
| |_- this function returns a `Result`
|
||||
|
|
||||
= help: the trait `FromResidual<Option<Infallible>>` is not implemented for `Result<u32, ()>`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
|
||||
--> $DIR/try-on-option.rs:13:6
|
||||
@ -28,11 +23,6 @@ LL | | }
|
||||
| |_- this function should return `Result` or `Option` to accept `?`
|
||||
|
|
||||
= help: the trait `FromResidual<Option<Infallible>>` is not implemented for `u32`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
@ -12,11 +12,6 @@ LL | | }
|
||||
| |_- this function should return `Result` or `Option` to accept `?`
|
||||
|
|
||||
= help: the trait `FromResidual<Result<Infallible, std::io::Error>>` is not implemented for `()`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be applied to values that implement `Try`
|
||||
--> $DIR/try-operator-on-main.rs:10:5
|
||||
@ -25,11 +20,6 @@ LL | ()?;
|
||||
| ^^^ the `?` operator cannot be applied to type `()`
|
||||
|
|
||||
= help: the trait `Try` is not implemented for `()`
|
||||
note: required by `branch`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn branch(self) -> ControlFlow<Self::Residual, Self::Output>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
|
||||
--> $DIR/try-operator-on-main.rs:10:7
|
||||
@ -47,11 +37,6 @@ LL | | }
|
||||
| |_- this function should return `Result` or `Option` to accept `?`
|
||||
|
|
||||
= help: the trait `FromResidual<_>` is not implemented for `()`
|
||||
note: required by `from_residual`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn from_residual(residual: R) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `(): Try` is not satisfied
|
||||
--> $DIR/try-operator-on-main.rs:14:25
|
||||
@ -72,11 +57,6 @@ LL | ()?;
|
||||
| ^^^ the `?` operator cannot be applied to type `()`
|
||||
|
|
||||
= help: the trait `Try` is not implemented for `()`
|
||||
note: required by `branch`
|
||||
--> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
|
||||
|
|
||||
LL | fn branch(self) -> ControlFlow<Self::Residual, Self::Output>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
|
@ -29,36 +29,18 @@ error[E0277]: the trait bound `String: Copy` is not satisfied
|
||||
|
|
||||
LL | struct Bounds<T:Copy=String>(T);
|
||||
| ^^^^ the trait `Copy` is not implemented for `String`
|
||||
|
|
||||
note: required by `Bounds`
|
||||
--> $DIR/type-check-defaults.rs:11:1
|
||||
|
|
||||
LL | struct Bounds<T:Copy=String>(T);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `String: Copy` is not satisfied
|
||||
--> $DIR/type-check-defaults.rs:14:42
|
||||
|
|
||||
LL | struct WhereClause<T=String>(T) where T: Copy;
|
||||
| ^^^^ the trait `Copy` is not implemented for `String`
|
||||
|
|
||||
note: required by `WhereClause`
|
||||
--> $DIR/type-check-defaults.rs:14:1
|
||||
|
|
||||
LL | struct WhereClause<T=String>(T) where T: Copy;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `String: Copy` is not satisfied
|
||||
--> $DIR/type-check-defaults.rs:17:20
|
||||
|
|
||||
LL | trait TraitBound<T:Copy=String> {}
|
||||
| ^^^^ the trait `Copy` is not implemented for `String`
|
||||
|
|
||||
note: required by `TraitBound`
|
||||
--> $DIR/type-check-defaults.rs:17:1
|
||||
|
|
||||
LL | trait TraitBound<T:Copy=String> {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `T: Copy` is not satisfied
|
||||
--> $DIR/type-check-defaults.rs:21:25
|
||||
@ -83,11 +65,6 @@ LL | trait ProjectionPred<T:Iterator = IntoIter<i32>> where T::Item : Add<u8> {}
|
||||
| ^^^^^^^ no implementation for `i32 + u8`
|
||||
|
|
||||
= help: the trait `Add<u8>` is not implemented for `i32`
|
||||
note: required by `ProjectionPred`
|
||||
--> $DIR/type-check-defaults.rs:24:1
|
||||
|
|
||||
LL | trait ProjectionPred<T:Iterator = IntoIter<i32>> where T::Item : Add<u8> {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 7 previous errors
|
||||
|
||||
|
@ -4,11 +4,6 @@ error[E0277]: the trait bound `Self: Tr<U>` is not satisfied
|
||||
LL | Tr::op(u)
|
||||
| ^^^^^^ the trait `Tr<U>` is not implemented for `Self`
|
||||
|
|
||||
note: required by `Tr::op`
|
||||
--> $DIR/type-params-in-different-spaces-2.rs:5:5
|
||||
|
|
||||
LL | fn op(_: T) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
help: consider further restricting `Self`
|
||||
|
|
||||
LL | fn test<U>(u: U) -> Self where Self: Tr<U> {
|
||||
@ -20,11 +15,6 @@ error[E0277]: the trait bound `Self: Tr<U>` is not satisfied
|
||||
LL | Tr::op(u)
|
||||
| ^^^^^^ the trait `Tr<U>` is not implemented for `Self`
|
||||
|
|
||||
note: required by `Tr::op`
|
||||
--> $DIR/type-params-in-different-spaces-2.rs:5:5
|
||||
|
|
||||
LL | fn op(_: T) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
help: consider further restricting `Self`
|
||||
|
|
||||
LL | fn test<U>(u: U) -> Self where Self: Tr<U> {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user