]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/bound/on-structs-and-enums.stderr
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[rust.git] / tests / ui / traits / bound / on-structs-and-enums.stderr
1 error[E0277]: the trait bound `T: Trait` is not satisfied
2   --> $DIR/on-structs-and-enums.rs:13:9
3    |
4 LL | impl<T> Foo<T> {
5    |         ^^^^^^ the trait `Trait` is not implemented for `T`
6    |
7 note: required by a bound in `Foo`
8   --> $DIR/on-structs-and-enums.rs:3:14
9    |
10 LL | struct Foo<T:Trait> {
11    |              ^^^^^ required by this bound in `Foo`
12 help: consider restricting type parameter `T`
13    |
14 LL | impl<T: Trait> Foo<T> {
15    |       +++++++
16
17 error[E0277]: the trait bound `isize: Trait` is not satisfied
18   --> $DIR/on-structs-and-enums.rs:19:8
19    |
20 LL |     a: Foo<isize>,
21    |        ^^^^^^^^^^ the trait `Trait` is not implemented for `isize`
22    |
23 note: required by a bound in `Foo`
24   --> $DIR/on-structs-and-enums.rs:3:14
25    |
26 LL | struct Foo<T:Trait> {
27    |              ^^^^^ required by this bound in `Foo`
28
29 error[E0277]: the trait bound `usize: Trait` is not satisfied
30   --> $DIR/on-structs-and-enums.rs:23:10
31    |
32 LL |     Quux(Bar<usize>),
33    |          ^^^^^^^^^^ the trait `Trait` is not implemented for `usize`
34    |
35 note: required by a bound in `Bar`
36   --> $DIR/on-structs-and-enums.rs:7:12
37    |
38 LL | enum Bar<T:Trait> {
39    |            ^^^^^ required by this bound in `Bar`
40
41 error[E0277]: the trait bound `U: Trait` is not satisfied
42   --> $DIR/on-structs-and-enums.rs:27:8
43    |
44 LL |     b: Foo<U>,
45    |        ^^^^^^ the trait `Trait` is not implemented for `U`
46    |
47 note: required by a bound in `Foo`
48   --> $DIR/on-structs-and-enums.rs:3:14
49    |
50 LL | struct Foo<T:Trait> {
51    |              ^^^^^ required by this bound in `Foo`
52 help: consider restricting type parameter `U`
53    |
54 LL | struct Badness<U: Trait> {
55    |                 +++++++
56
57 error[E0277]: the trait bound `V: Trait` is not satisfied
58   --> $DIR/on-structs-and-enums.rs:31:21
59    |
60 LL |     EvenMoreBadness(Bar<V>),
61    |                     ^^^^^^ the trait `Trait` is not implemented for `V`
62    |
63 note: required by a bound in `Bar`
64   --> $DIR/on-structs-and-enums.rs:7:12
65    |
66 LL | enum Bar<T:Trait> {
67    |            ^^^^^ required by this bound in `Bar`
68 help: consider restricting type parameter `V`
69    |
70 LL | enum MoreBadness<V: Trait> {
71    |                   +++++++
72
73 error[E0277]: the trait bound `i32: Trait` is not satisfied
74   --> $DIR/on-structs-and-enums.rs:35:5
75    |
76 LL |     Foo<i32>,
77    |     ^^^^^^^^ the trait `Trait` is not implemented for `i32`
78    |
79 note: required by a bound in `Foo`
80   --> $DIR/on-structs-and-enums.rs:3:14
81    |
82 LL | struct Foo<T:Trait> {
83    |              ^^^^^ required by this bound in `Foo`
84
85 error[E0277]: the trait bound `u8: Trait` is not satisfied
86   --> $DIR/on-structs-and-enums.rs:39:29
87    |
88 LL |     DictionaryLike { field: Bar<u8> },
89    |                             ^^^^^^^ the trait `Trait` is not implemented for `u8`
90    |
91 note: required by a bound in `Bar`
92   --> $DIR/on-structs-and-enums.rs:7:12
93    |
94 LL | enum Bar<T:Trait> {
95    |            ^^^^^ required by this bound in `Bar`
96
97 error: aborting due to 7 previous errors
98
99 For more information about this error, try `rustc --explain E0277`.