summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/suggest-blanket-impl-local-trait.stderr
blob: 398caa98b84db8ac4467bdaa8894e18ba2349496 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
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
   |
LL | impl LocalTraitTwo for dyn LocalTraitOne {}
   |                        +++
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
  --> $DIR/suggest-blanket-impl-local-trait.rs:18:23
   |
LL | impl fmt::Display for LocalTraitOne {
   |                       ^^^^^^^^^^^^^
   |
help: add `dyn` keyword before this trait
   |
LL | impl fmt::Display for dyn LocalTraitOne {
   |                       +++

error[E0782]: trait objects must include the `dyn` keyword
  --> $DIR/suggest-blanket-impl-local-trait.rs:26:23
   |
LL | impl fmt::Display for LocalTraitTwo + Send {
   |                       ^^^^^^^^^^^^^^^^^^^^
   |
help: add `dyn` keyword before this trait
   |
LL | impl fmt::Display for dyn LocalTraitTwo + Send {
   |                       +++

error[E0782]: trait objects must include the `dyn` keyword
  --> $DIR/suggest-blanket-impl-local-trait.rs:34:24
   |
LL | impl LocalTraitOne for fmt::Display {}
   |                        ^^^^^^^^^^^^
   |
help: add `dyn` keyword before this trait
   |
LL | impl LocalTraitOne for dyn fmt::Display {}
   |                        +++
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 {}
   |     +++++++++++++++++                   ~

error[E0782]: trait objects must include the `dyn` keyword
  --> $DIR/suggest-blanket-impl-local-trait.rs:40:24
   |
LL | impl LocalTraitOne for fmt::Display + Send {}
   |                        ^^^^^^^^^^^^^^^^^^^
   |
help: add `dyn` keyword before this trait
   |
LL | impl LocalTraitOne for dyn fmt::Display + Send {}
   |                        +++
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 {}
   |     ++++++++++++++++++++++++                   ~

error[E0782]: trait objects must include the `dyn` keyword
  --> $DIR/suggest-blanket-impl-local-trait.rs:46:29
   |
LL | impl<E> GenericTrait<E> for LocalTraitOne {}
   |                             ^^^^^^^^^^^^^
   |
help: add `dyn` keyword before this trait
   |
LL | impl<E> GenericTrait<E> for dyn LocalTraitOne {}
   |                             +++
help: alternatively use a blanket implementation to implement `GenericTrait<E>` for all types that also implement `LocalTraitOne`
   |
LL | impl<E, T: LocalTraitOne> GenericTrait<E> for T {}
   |       ++++++++++++++++++                      ~

error[E0782]: trait objects must include the `dyn` keyword
  --> $DIR/suggest-blanket-impl-local-trait.rs:53:35
   |
LL | impl<T, E> GenericTraitTwo<E> for GenericTrait<T> {}
   |                                   ^^^^^^^^^^^^^^^
   |
help: add `dyn` keyword before this trait
   |
LL | impl<T, E> GenericTraitTwo<E> for dyn GenericTrait<T> {}
   |                                   +++
help: alternatively use a blanket implementation to implement `GenericTraitTwo<E>` for all types that also implement `GenericTrait<T>`
   |
LL | impl<T, E, U: GenericTrait<T>> GenericTraitTwo<E> for U {}
   |          ++++++++++++++++++++                         ~

error: aborting due to 7 previous errors

For more information about this error, try `rustc --explain E0782`.