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 LocalTraitOne {}
10 LL + impl LocalTraitTwo for dyn LocalTraitOne {}
12 help: alternatively use a blanket implementation to implement `LocalTraitTwo` for all types that also implement `LocalTraitOne`
14 LL | impl<T: LocalTraitOne> LocalTraitTwo for T {}
15 | ++++++++++++++++++ ~
17 error[E0782]: trait objects must include the `dyn` keyword
18 --> $DIR/suggest-blanket-impl-local-trait.rs:18:23
20 LL | impl fmt::Display for LocalTraitOne {
23 help: add `dyn` keyword before this trait
25 LL - impl fmt::Display for LocalTraitOne {
26 LL + impl fmt::Display for dyn LocalTraitOne {
29 error[E0782]: trait objects must include the `dyn` keyword
30 --> $DIR/suggest-blanket-impl-local-trait.rs:26:23
32 LL | impl fmt::Display for LocalTraitTwo + Send {
33 | ^^^^^^^^^^^^^^^^^^^^
35 help: add `dyn` keyword before this trait
37 LL - impl fmt::Display for LocalTraitTwo + Send {
38 LL + impl fmt::Display for dyn LocalTraitTwo + Send {
41 error[E0782]: trait objects must include the `dyn` keyword
42 --> $DIR/suggest-blanket-impl-local-trait.rs:34:24
44 LL | impl LocalTraitOne for fmt::Display {}
47 help: add `dyn` keyword before this trait
49 LL - impl LocalTraitOne for fmt::Display {}
50 LL + impl LocalTraitOne for dyn fmt::Display {}
52 help: alternatively use a blanket implementation to implement `LocalTraitOne` for all types that also implement `fmt::Display`
54 LL | impl<T: fmt::Display> LocalTraitOne for T {}
57 error[E0782]: trait objects must include the `dyn` keyword
58 --> $DIR/suggest-blanket-impl-local-trait.rs:40:24
60 LL | impl LocalTraitOne for fmt::Display + Send {}
63 help: add `dyn` keyword before this trait
65 LL - impl LocalTraitOne for fmt::Display + Send {}
66 LL + impl LocalTraitOne for dyn fmt::Display + Send {}
68 help: alternatively use a blanket implementation to implement `LocalTraitOne` for all types that also implement `fmt::Display + Send`
70 LL | impl<T: fmt::Display + Send> LocalTraitOne for T {}
71 | ++++++++++++++++++++++++ ~
73 error[E0782]: trait objects must include the `dyn` keyword
74 --> $DIR/suggest-blanket-impl-local-trait.rs:46:29
76 LL | impl<E> GenericTrait<E> for LocalTraitOne {}
79 help: add `dyn` keyword before this trait
81 LL - impl<E> GenericTrait<E> for LocalTraitOne {}
82 LL + impl<E> GenericTrait<E> for dyn LocalTraitOne {}
84 help: alternatively use a blanket implementation to implement `GenericTrait<E>` for all types that also implement `LocalTraitOne`
86 LL | impl<E, T: LocalTraitOne> GenericTrait<E> for T {}
87 | ++++++++++++++++++ ~
89 error[E0782]: trait objects must include the `dyn` keyword
90 --> $DIR/suggest-blanket-impl-local-trait.rs:53:35
92 LL | impl<T, E> GenericTraitTwo<E> for GenericTrait<T> {}
95 help: add `dyn` keyword before this trait
97 LL - impl<T, E> GenericTraitTwo<E> for GenericTrait<T> {}
98 LL + impl<T, E> GenericTraitTwo<E> for dyn GenericTrait<T> {}
100 help: alternatively use a blanket implementation to implement `GenericTraitTwo<E>` for all types that also implement `GenericTrait<T>`
102 LL | impl<T, E, U: GenericTrait<T>> GenericTraitTwo<E> for U {}
103 | ++++++++++++++++++++ ~
105 error: aborting due to 7 previous errors
107 For more information about this error, try `rustc --explain E0782`.