diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2022-07-26 13:57:19 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2022-07-26 14:14:21 +0000 |
| commit | 71e162e6caf3aa64f727f3bc2aa8744f771eb12b (patch) | |
| tree | f52d38165b3d4774c94123434567bdaaf98a6505 /src | |
| parent | d60ebe366bcc6b51e5ae1337288837a0be60ed36 (diff) | |
| download | rust-71e162e6caf3aa64f727f3bc2aa8744f771eb12b.tar.gz rust-71e162e6caf3aa64f727f3bc2aa8744f771eb12b.zip | |
Fix diagnostics for unfulfilled obligations
Diffstat (limited to 'src')
3 files changed, 1 insertions, 19 deletions
diff --git a/src/test/ui/const-generics/issues/issue-90318.stderr b/src/test/ui/const-generics/issues/issue-90318.stderr index 30eb4eba4a6..aba4b5c1a8d 100644 --- a/src/test/ui/const-generics/issues/issue-90318.stderr +++ b/src/test/ui/const-generics/issues/issue-90318.stderr @@ -10,7 +10,6 @@ note: the trait `PartialEq<_>` is implemented for `TypeId`, but that implementat | LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True, | ^^ - = help: the trait `PartialEq` is implemented for `TypeId` error[E0277]: can't compare `TypeId` with `_` in const contexts --> $DIR/issue-90318.rs:21:28 @@ -24,7 +23,6 @@ note: the trait `PartialEq<_>` is implemented for `TypeId`, but that implementat | LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True, | ^^ - = help: the trait `PartialEq` is implemented for `TypeId` error: aborting due to 2 previous errors diff --git a/src/test/ui/consts/min_const_fn/cmp_fn_pointers.stderr b/src/test/ui/consts/min_const_fn/cmp_fn_pointers.stderr index 02d01445aa1..8a1b20a3345 100644 --- a/src/test/ui/consts/min_const_fn/cmp_fn_pointers.stderr +++ b/src/test/ui/consts/min_const_fn/cmp_fn_pointers.stderr @@ -10,16 +10,6 @@ note: the trait `PartialEq<_>` is implemented for `fn()`, but that implementatio | LL | unsafe { x == y } | ^^ - = help: the following other types implement trait `PartialEq<Rhs>`: - extern "C" fn() -> Ret - extern "C" fn(A, B) -> Ret - extern "C" fn(A, B, ...) -> Ret - extern "C" fn(A, B, C) -> Ret - extern "C" fn(A, B, C, ...) -> Ret - extern "C" fn(A, B, C, D) -> Ret - extern "C" fn(A, B, C, D, ...) -> Ret - extern "C" fn(A, B, C, D, E) -> Ret - and 68 others error: aborting due to previous error diff --git a/src/test/ui/rfc-2632-const-trait-impl/call-generic-method-fail.stderr b/src/test/ui/rfc-2632-const-trait-impl/call-generic-method-fail.stderr index b011a2916fb..83d395dda19 100644 --- a/src/test/ui/rfc-2632-const-trait-impl/call-generic-method-fail.stderr +++ b/src/test/ui/rfc-2632-const-trait-impl/call-generic-method-fail.stderr @@ -9,13 +9,7 @@ note: the trait `PartialEq<_>` is implemented for `T`, but that implementation i | LL | *t == *t | ^^ - = help: the following other types implement trait `PartialEq<Rhs>`: - <&A as PartialEq<&B>> - <&A as PartialEq<&mut B>> - <&mut A as PartialEq<&B>> - <&mut A as PartialEq<&mut B>> - <*const T as PartialEq> - <*mut T as PartialEq> + = help: the trait `PartialEq<&B>` is implemented for `&A` error: aborting due to previous error |
