diff options
| author | Esteban Kuber <esteban@kuber.com.ar> | 2021-11-17 23:35:38 +0000 |
|---|---|---|
| committer | Esteban Kuber <esteban@kuber.com.ar> | 2021-12-03 18:41:39 +0000 |
| commit | fa3eebb26e103a8f0fa81b378e8c8525a80baf32 (patch) | |
| tree | accdd684bc0438766ab4b60cdb97c68c1b7690db /src/test | |
| parent | e70105f9719351990fe026c1c0777b1d685ed744 (diff) | |
Modify `bounds_span` to ignore bounds coming from a `derive` macro
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/suggestions/derive-macro-missing-bounds.stderr | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/test/ui/suggestions/derive-macro-missing-bounds.stderr b/src/test/ui/suggestions/derive-macro-missing-bounds.stderr index 39678105930..7a4f7e209c1 100644 --- a/src/test/ui/suggestions/derive-macro-missing-bounds.stderr +++ b/src/test/ui/suggestions/derive-macro-missing-bounds.stderr @@ -31,10 +31,10 @@ LL | impl<T: Debug + Trait> Debug for Inner<T> { = note: required because of the requirements on the impl of `Debug` for `&c::Inner<T>` = note: required for the cast to the object type `dyn Debug` = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) -help: consider further restricting this bound +help: consider restricting type parameter `T` | -LL | #[derive(Debug + c::Trait)] - | ++++++++++ +LL | struct Outer<T: c::Trait>(Inner<T>); + | ++++++++++ error[E0277]: the trait bound `T: d::Trait` is not satisfied --> $DIR/derive-macro-missing-bounds.rs:56:21 @@ -53,10 +53,10 @@ LL | impl<T> Debug for Inner<T> where T: Debug, T: Trait { = note: required because of the requirements on the impl of `Debug` for `&d::Inner<T>` = note: required for the cast to the object type `dyn Debug` = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) -help: consider further restricting this bound +help: consider restricting type parameter `T` | -LL | #[derive(Debug + d::Trait)] - | ++++++++++ +LL | struct Outer<T: d::Trait>(Inner<T>); + | ++++++++++ error[E0277]: the trait bound `T: e::Trait` is not satisfied --> $DIR/derive-macro-missing-bounds.rs:71:21 @@ -75,10 +75,10 @@ LL | impl<T> Debug for Inner<T> where T: Debug + Trait { = note: required because of the requirements on the impl of `Debug` for `&e::Inner<T>` = note: required for the cast to the object type `dyn Debug` = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) -help: consider further restricting this bound +help: consider restricting type parameter `T` | -LL | #[derive(Debug + e::Trait)] - | ++++++++++ +LL | struct Outer<T: e::Trait>(Inner<T>); + | ++++++++++ error[E0277]: the trait bound `T: f::Trait` is not satisfied --> $DIR/derive-macro-missing-bounds.rs:86:21 @@ -97,10 +97,10 @@ LL | impl<T: Debug> Debug for Inner<T> where T: Trait { = note: required because of the requirements on the impl of `Debug` for `&f::Inner<T>` = note: required for the cast to the object type `dyn Debug` = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) -help: consider further restricting this bound +help: consider restricting type parameter `T` | -LL | #[derive(Debug + f::Trait)] - | ++++++++++ +LL | struct Outer<T: f::Trait>(Inner<T>); + | ++++++++++ error: aborting due to 5 previous errors |
