2022-06-22 22:06:34 +00:00
|
|
|
error[E0782]: trait objects must include the `dyn` keyword
|
|
|
|
--> $DIR/suggest-blanket-impl-local-trait.rs:13:24
|
|
|
|
|
|
|
|
|
LL | impl LocalTraitTwo for LocalTraitOne {}
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: add `dyn` keyword before this trait
|
|
|
|
|
|
2022-09-11 19:19:07 +00:00
|
|
|
LL | impl LocalTraitTwo for dyn LocalTraitOne {}
|
|
|
|
| +++
|
2022-06-22 22:06:34 +00:00
|
|
|
help: alternatively use a blanket implementation to implement `LocalTraitTwo` for all types that also implement `LocalTraitOne`
|
|
|
|
|
|
|
|
|
LL | impl<T: LocalTraitOne> LocalTraitTwo for T {}
|
|
|
|
| ++++++++++++++++++ ~
|
|
|
|
|
|
|
|
error[E0782]: trait objects must include the `dyn` keyword
|
2022-06-29 23:31:10 +00:00
|
|
|
--> $DIR/suggest-blanket-impl-local-trait.rs:18:23
|
2022-06-22 22:06:34 +00:00
|
|
|
|
|
|
|
|
LL | impl fmt::Display for LocalTraitOne {
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: add `dyn` keyword before this trait
|
|
|
|
|
|
2022-09-11 19:19:07 +00:00
|
|
|
LL | impl fmt::Display for dyn LocalTraitOne {
|
|
|
|
| +++
|
2022-06-22 22:06:34 +00:00
|
|
|
|
|
|
|
error[E0782]: trait objects must include the `dyn` keyword
|
2022-06-29 23:31:10 +00:00
|
|
|
--> $DIR/suggest-blanket-impl-local-trait.rs:26:23
|
2022-06-22 22:06:34 +00:00
|
|
|
|
|
|
|
|
LL | impl fmt::Display for LocalTraitTwo + Send {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: add `dyn` keyword before this trait
|
|
|
|
|
|
2022-09-11 19:19:07 +00:00
|
|
|
LL | impl fmt::Display for dyn LocalTraitTwo + Send {
|
|
|
|
| +++
|
2022-06-22 22:06:34 +00:00
|
|
|
|
|
|
|
error[E0782]: trait objects must include the `dyn` keyword
|
2022-06-29 23:31:10 +00:00
|
|
|
--> $DIR/suggest-blanket-impl-local-trait.rs:34:24
|
2022-06-22 22:06:34 +00:00
|
|
|
|
|
|
|
|
LL | impl LocalTraitOne for fmt::Display {}
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: add `dyn` keyword before this trait
|
|
|
|
|
|
2022-09-11 19:19:07 +00:00
|
|
|
LL | impl LocalTraitOne for dyn fmt::Display {}
|
|
|
|
| +++
|
2022-06-29 23:31:10 +00:00
|
|
|
help: alternatively use a blanket implementation to implement `LocalTraitOne` for all types that also implement `fmt::Display`
|
|
|
|
|
|
|
|
|
LL | impl<T: fmt::Display> LocalTraitOne for T {}
|
|
|
|
| +++++++++++++++++ ~
|
2022-06-22 22:06:34 +00:00
|
|
|
|
|
|
|
error[E0782]: trait objects must include the `dyn` keyword
|
2022-06-29 23:31:10 +00:00
|
|
|
--> $DIR/suggest-blanket-impl-local-trait.rs:40:24
|
2022-06-22 22:06:34 +00:00
|
|
|
|
|
|
|
|
LL | impl LocalTraitOne for fmt::Display + Send {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: add `dyn` keyword before this trait
|
|
|
|
|
|
2022-09-11 19:19:07 +00:00
|
|
|
LL | impl LocalTraitOne for dyn fmt::Display + Send {}
|
|
|
|
| +++
|
2022-06-29 23:31:10 +00:00
|
|
|
help: alternatively use a blanket implementation to implement `LocalTraitOne` for all types that also implement `fmt::Display + Send`
|
|
|
|
|
|
|
|
|
LL | impl<T: fmt::Display + Send> LocalTraitOne for T {}
|
|
|
|
| ++++++++++++++++++++++++ ~
|
2022-06-22 22:06:34 +00:00
|
|
|
|
|
|
|
error[E0782]: trait objects must include the `dyn` keyword
|
2022-06-29 23:31:10 +00:00
|
|
|
--> $DIR/suggest-blanket-impl-local-trait.rs:46:29
|
2022-06-22 22:06:34 +00:00
|
|
|
|
|
|
|
|
LL | impl<E> GenericTrait<E> for LocalTraitOne {}
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: add `dyn` keyword before this trait
|
|
|
|
|
|
2022-09-11 19:19:07 +00:00
|
|
|
LL | impl<E> GenericTrait<E> for dyn LocalTraitOne {}
|
|
|
|
| +++
|
2022-06-22 22:06:34 +00:00
|
|
|
help: alternatively use a blanket implementation to implement `GenericTrait<E>` for all types that also implement `LocalTraitOne`
|
|
|
|
|
|
2022-06-29 23:31:10 +00:00
|
|
|
LL | impl<E, T: LocalTraitOne> GenericTrait<E> for T {}
|
2022-06-22 22:06:34 +00:00
|
|
|
| ++++++++++++++++++ ~
|
|
|
|
|
|
|
|
error[E0782]: trait objects must include the `dyn` keyword
|
2022-06-29 23:31:10 +00:00
|
|
|
--> $DIR/suggest-blanket-impl-local-trait.rs:53:35
|
2022-06-22 22:06:34 +00:00
|
|
|
|
|
|
|
|
LL | impl<T, E> GenericTraitTwo<E> for GenericTrait<T> {}
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: add `dyn` keyword before this trait
|
|
|
|
|
|
2022-09-11 19:19:07 +00:00
|
|
|
LL | impl<T, E> GenericTraitTwo<E> for dyn GenericTrait<T> {}
|
|
|
|
| +++
|
2022-06-22 22:06:34 +00:00
|
|
|
help: alternatively use a blanket implementation to implement `GenericTraitTwo<E>` for all types that also implement `GenericTrait<T>`
|
|
|
|
|
|
2022-06-29 23:31:10 +00:00
|
|
|
LL | impl<T, E, U: GenericTrait<T>> GenericTraitTwo<E> for U {}
|
2022-06-22 22:06:34 +00:00
|
|
|
| ++++++++++++++++++++ ~
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0782`.
|