1 error[E0782]: trait objects must include the `dyn` keyword
2 --> $DIR/suggest-blanket-impl-local-trait.rs:13:24
4 LL | impl LocalTraitTwo for LocalTraitOne {}
7 help: add `dyn` keyword before this trait
9 LL | impl LocalTraitTwo for dyn LocalTraitOne {}
11 help: alternatively use a blanket implementation to implement `LocalTraitTwo` for all types that also implement `LocalTraitOne`
13 LL | impl<T: LocalTraitOne> LocalTraitTwo for T {}
14 | ++++++++++++++++++ ~
16 error[E0782]: trait objects must include the `dyn` keyword
17 --> $DIR/suggest-blanket-impl-local-trait.rs:18:23
19 LL | impl fmt::Display for LocalTraitOne {
22 help: add `dyn` keyword before this trait
24 LL | impl fmt::Display for dyn LocalTraitOne {
27 error[E0782]: trait objects must include the `dyn` keyword
28 --> $DIR/suggest-blanket-impl-local-trait.rs:26:23
30 LL | impl fmt::Display for LocalTraitTwo + Send {
31 | ^^^^^^^^^^^^^^^^^^^^
33 help: add `dyn` keyword before this trait
35 LL | impl fmt::Display for dyn LocalTraitTwo + Send {
38 error[E0782]: trait objects must include the `dyn` keyword
39 --> $DIR/suggest-blanket-impl-local-trait.rs:34:24
41 LL | impl LocalTraitOne for fmt::Display {}
44 help: add `dyn` keyword before this trait
46 LL | impl LocalTraitOne for dyn fmt::Display {}
48 help: alternatively use a blanket implementation to implement `LocalTraitOne` for all types that also implement `fmt::Display`
50 LL | impl<T: fmt::Display> LocalTraitOne for T {}
53 error[E0782]: trait objects must include the `dyn` keyword
54 --> $DIR/suggest-blanket-impl-local-trait.rs:40:24
56 LL | impl LocalTraitOne for fmt::Display + Send {}
59 help: add `dyn` keyword before this trait
61 LL | impl LocalTraitOne for dyn fmt::Display + Send {}
63 help: alternatively use a blanket implementation to implement `LocalTraitOne` for all types that also implement `fmt::Display + Send`
65 LL | impl<T: fmt::Display + Send> LocalTraitOne for T {}
66 | ++++++++++++++++++++++++ ~
68 error[E0782]: trait objects must include the `dyn` keyword
69 --> $DIR/suggest-blanket-impl-local-trait.rs:46:29
71 LL | impl<E> GenericTrait<E> for LocalTraitOne {}
74 help: add `dyn` keyword before this trait
76 LL | impl<E> GenericTrait<E> for dyn LocalTraitOne {}
78 help: alternatively use a blanket implementation to implement `GenericTrait<E>` for all types that also implement `LocalTraitOne`
80 LL | impl<E, T: LocalTraitOne> GenericTrait<E> for T {}
81 | ++++++++++++++++++ ~
83 error[E0782]: trait objects must include the `dyn` keyword
84 --> $DIR/suggest-blanket-impl-local-trait.rs:53:35
86 LL | impl<T, E> GenericTraitTwo<E> for GenericTrait<T> {}
89 help: add `dyn` keyword before this trait
91 LL | impl<T, E> GenericTraitTwo<E> for dyn GenericTrait<T> {}
93 help: alternatively use a blanket implementation to implement `GenericTraitTwo<E>` for all types that also implement `GenericTrait<T>`
95 LL | impl<T, E, U: GenericTrait<T>> GenericTraitTwo<E> for U {}
96 | ++++++++++++++++++++ ~
98 error: aborting due to 7 previous errors
100 For more information about this error, try `rustc --explain E0782`.