File: trait_bound_not_added.stderr

package info (click to toggle)
rust-impl-trait-for-tuples 0.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 352 kB
  • sloc: makefile: 2
file content (83 lines) | stat: -rw-r--r-- 4,336 bytes parent folder | download
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
error[E0046]: not all trait items implemented, missing: `test`
  --> tests/fail/trait_bound_not_added.rs:15:1
   |
2  |     fn test();
   |     ---------- `test` from trait
...
15 | impl Test for Impl {}
   | ^^^^^^^^^^^^^^^^^^ missing `test` in implementation

error[E0599]: no function or associated item named `test` found for type parameter `TupleElement0` in the current scope
 --> tests/fail/trait_bound_not_added.rs:9:32
  |
5 | #[impl_trait_for_tuples::impl_for_tuples(5)]
  | -------------------------------------------- function or associated item `test` not found for this type parameter
...
9 |         for_tuples!( #( Tuple::test(); )* )
  |                                ^^^^ function or associated item not found in `TupleElement0`
  |
  = help: items from traits can only be used if the type parameter is bounded by the trait
help: the following trait defines an item `test`, perhaps you need to restrict type parameter `TupleElement0` with it:
  |
5 | #[impl_trait_for_tuples::impl_for_tuples(5)]: Test
  |                                             ++++++

error[E0599]: no function or associated item named `test` found for type parameter `TupleElement1` in the current scope
 --> tests/fail/trait_bound_not_added.rs:9:32
  |
5 | #[impl_trait_for_tuples::impl_for_tuples(5)]
  | -------------------------------------------- function or associated item `test` not found for this type parameter
...
9 |         for_tuples!( #( Tuple::test(); )* )
  |                                ^^^^ function or associated item not found in `TupleElement1`
  |
  = help: items from traits can only be used if the type parameter is bounded by the trait
help: the following trait defines an item `test`, perhaps you need to restrict type parameter `TupleElement1` with it:
  |
5 | #[impl_trait_for_tuples::impl_for_tuples(5)]: Test
  |                                             ++++++

error[E0599]: no function or associated item named `test` found for type parameter `TupleElement2` in the current scope
 --> tests/fail/trait_bound_not_added.rs:9:32
  |
5 | #[impl_trait_for_tuples::impl_for_tuples(5)]
  | -------------------------------------------- function or associated item `test` not found for this type parameter
...
9 |         for_tuples!( #( Tuple::test(); )* )
  |                                ^^^^ function or associated item not found in `TupleElement2`
  |
  = help: items from traits can only be used if the type parameter is bounded by the trait
help: the following trait defines an item `test`, perhaps you need to restrict type parameter `TupleElement2` with it:
  |
5 | #[impl_trait_for_tuples::impl_for_tuples(5)]: Test
  |                                             ++++++

error[E0599]: no function or associated item named `test` found for type parameter `TupleElement3` in the current scope
 --> tests/fail/trait_bound_not_added.rs:9:32
  |
5 | #[impl_trait_for_tuples::impl_for_tuples(5)]
  | -------------------------------------------- function or associated item `test` not found for this type parameter
...
9 |         for_tuples!( #( Tuple::test(); )* )
  |                                ^^^^ function or associated item not found in `TupleElement3`
  |
  = help: items from traits can only be used if the type parameter is bounded by the trait
help: the following trait defines an item `test`, perhaps you need to restrict type parameter `TupleElement3` with it:
  |
5 | #[impl_trait_for_tuples::impl_for_tuples(5)]: Test
  |                                             ++++++

error[E0599]: no function or associated item named `test` found for type parameter `TupleElement4` in the current scope
 --> tests/fail/trait_bound_not_added.rs:9:32
  |
5 | #[impl_trait_for_tuples::impl_for_tuples(5)]
  | -------------------------------------------- function or associated item `test` not found for this type parameter
...
9 |         for_tuples!( #( Tuple::test(); )* )
  |                                ^^^^ function or associated item not found in `TupleElement4`
  |
  = help: items from traits can only be used if the type parameter is bounded by the trait
help: the following trait defines an item `test`, perhaps you need to restrict type parameter `TupleElement4` with it:
  |
5 | #[impl_trait_for_tuples::impl_for_tuples(5)]: Test
  |                                             ++++++