diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-04-02 19:57:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-02 19:57:32 +0200 |
| commit | 6cb74ad99f8f6cc994ebe18d906ec1dd7ccd8b3d (patch) | |
| tree | 0c7dae9869d3e9fd19f6ffb4456aecc4d9268355 /src/test/ui/specialization | |
| parent | 542f441d445026d0996eebee9ddddee98f5dc3e5 (diff) | |
| parent | 8f7735624924e3399a1abee68615a99072347cc9 (diff) | |
Rollup merge of #83673 - hi-rustin:rustin-patch-suggestion, r=estebank
give full path of constraint in suggest_constraining_type_param close https://github.com/rust-lang/rust/issues/83513
Diffstat (limited to 'src/test/ui/specialization')
| -rw-r--r-- | src/test/ui/specialization/deafult-generic-associated-type-bound.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/specialization/defaultimpl/specialization-wfcheck.stderr | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/specialization/deafult-generic-associated-type-bound.stderr b/src/test/ui/specialization/deafult-generic-associated-type-bound.stderr index b5a1877ea19..eb5d80bc4dd 100644 --- a/src/test/ui/specialization/deafult-generic-associated-type-bound.stderr +++ b/src/test/ui/specialization/deafult-generic-associated-type-bound.stderr @@ -28,8 +28,8 @@ LL | default type U<'a> = &'a T; = note: required because of the requirements on the impl of `PartialEq` for `&'a T` help: consider further restricting this bound | -LL | impl<T: 'static + PartialEq> X for T { - | ^^^^^^^^^^^ +LL | impl<T: 'static + std::cmp::PartialEq> X for T { + | ^^^^^^^^^^^^^^^^^^^^^ error: aborting due to previous error; 2 warnings emitted diff --git a/src/test/ui/specialization/defaultimpl/specialization-wfcheck.stderr b/src/test/ui/specialization/defaultimpl/specialization-wfcheck.stderr index 57b90c457cb..e416f30cb41 100644 --- a/src/test/ui/specialization/defaultimpl/specialization-wfcheck.stderr +++ b/src/test/ui/specialization/defaultimpl/specialization-wfcheck.stderr @@ -19,8 +19,8 @@ LL | default impl<U> Foo<'static, U> for () {} | help: consider restricting type parameter `U` | -LL | default impl<U: Eq> Foo<'static, U> for () {} - | ^^^^ +LL | default impl<U: std::cmp::Eq> Foo<'static, U> for () {} + | ^^^^^^^^^^^^^^ error: aborting due to previous error; 1 warning emitted |
