File: custom_trait_bound_invalid.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 (29 lines) | stat: -rw-r--r-- 1,075 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
error: Invalid trait bound: unexpected token
  --> tests/fail/custom_trait_bound_invalid.rs:14:40
   |
14 | #[tuple_types_custom_trait_bound(Custom, Clone)]
   |                                        ^

error[E0277]: the trait bound `(Impl, Impl): Test` is not satisfied
  --> tests/fail/custom_trait_bound_invalid.rs:32:12
   |
32 |     test::<(Impl, Impl)>();
   |            ^^^^^^^^^^^^ the trait `Test` is not implemented for `(Impl, Impl)`
   |
note: required by a bound in `test`
  --> tests/fail/custom_trait_bound_invalid.rs:30:12
   |
30 | fn test<T: Test>() {}
   |            ^^^^ required by this bound in `test`

error[E0277]: the trait bound `(Impl, Impl, Impl): Test` is not satisfied
  --> tests/fail/custom_trait_bound_invalid.rs:33:12
   |
33 |     test::<(Impl, Impl, Impl)>();
   |            ^^^^^^^^^^^^^^^^^^ the trait `Test` is not implemented for `(Impl, Impl, Impl)`
   |
note: required by a bound in `test`
  --> tests/fail/custom_trait_bound_invalid.rs:30:12
   |
30 | fn test<T: Test>() {}
   |            ^^^^ required by this bound in `test`