fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.5 KiB119 linesraw
1error[E0277]: the trait bound `T: Trait` is not satisfied
2  --> $DIR/on-structs-and-enums.rs:13:9
3   |
4LL | impl<T> Foo<T> {
5   |         ^^^^^^ the trait `Trait` is not implemented for `T`
6   |
7note: required by a bound in `Foo`
8  --> $DIR/on-structs-and-enums.rs:3:14
9   |
10LL | struct Foo<T:Trait> {
11   |              ^^^^^ required by this bound in `Foo`
12help: consider restricting type parameter `T`
13   |
14LL | impl<T: Trait> Foo<T> {
15   |       +++++++
16
17error[E0277]: the trait bound `isize: Trait` is not satisfied
18  --> $DIR/on-structs-and-enums.rs:19:8
19   |
20LL |     a: Foo<isize>,
21   |        ^^^^^^^^^^ the trait `Trait` is not implemented for `isize`
22   |
23help: this trait has no implementations, consider adding one
24  --> $DIR/on-structs-and-enums.rs:1:1
25   |
26LL | trait Trait {}
27   | ^^^^^^^^^^^
28note: required by a bound in `Foo`
29  --> $DIR/on-structs-and-enums.rs:3:14
30   |
31LL | struct Foo<T:Trait> {
32   |              ^^^^^ required by this bound in `Foo`
33
34error[E0277]: the trait bound `usize: Trait` is not satisfied
35  --> $DIR/on-structs-and-enums.rs:23:10
36   |
37LL |     Quux(Bar<usize>),
38   |          ^^^^^^^^^^ the trait `Trait` is not implemented for `usize`
39   |
40help: this trait has no implementations, consider adding one
41  --> $DIR/on-structs-and-enums.rs:1:1
42   |
43LL | trait Trait {}
44   | ^^^^^^^^^^^
45note: required by a bound in `Bar`
46  --> $DIR/on-structs-and-enums.rs:7:12
47   |
48LL | enum Bar<T:Trait> {
49   |            ^^^^^ required by this bound in `Bar`
50
51error[E0277]: the trait bound `U: Trait` is not satisfied
52  --> $DIR/on-structs-and-enums.rs:27:8
53   |
54LL |     b: Foo<U>,
55   |        ^^^^^^ the trait `Trait` is not implemented for `U`
56   |
57note: required by a bound in `Foo`
58  --> $DIR/on-structs-and-enums.rs:3:14
59   |
60LL | struct Foo<T:Trait> {
61   |              ^^^^^ required by this bound in `Foo`
62help: consider restricting type parameter `U`
63   |
64LL | struct Badness<U: Trait> {
65   |                 +++++++
66
67error[E0277]: the trait bound `V: Trait` is not satisfied
68  --> $DIR/on-structs-and-enums.rs:31:21
69   |
70LL |     EvenMoreBadness(Bar<V>),
71   |                     ^^^^^^ the trait `Trait` is not implemented for `V`
72   |
73note: required by a bound in `Bar`
74  --> $DIR/on-structs-and-enums.rs:7:12
75   |
76LL | enum Bar<T:Trait> {
77   |            ^^^^^ required by this bound in `Bar`
78help: consider restricting type parameter `V`
79   |
80LL | enum MoreBadness<V: Trait> {
81   |                   +++++++
82
83error[E0277]: the trait bound `i32: Trait` is not satisfied
84  --> $DIR/on-structs-and-enums.rs:35:5
85   |
86LL |     Foo<i32>,
87   |     ^^^^^^^^ the trait `Trait` is not implemented for `i32`
88   |
89help: this trait has no implementations, consider adding one
90  --> $DIR/on-structs-and-enums.rs:1:1
91   |
92LL | trait Trait {}
93   | ^^^^^^^^^^^
94note: required by a bound in `Foo`
95  --> $DIR/on-structs-and-enums.rs:3:14
96   |
97LL | struct Foo<T:Trait> {
98   |              ^^^^^ required by this bound in `Foo`
99
100error[E0277]: the trait bound `u8: Trait` is not satisfied
101  --> $DIR/on-structs-and-enums.rs:39:29
102   |
103LL |     DictionaryLike { field: Bar<u8> },
104   |                             ^^^^^^^ the trait `Trait` is not implemented for `u8`
105   |
106help: this trait has no implementations, consider adding one
107  --> $DIR/on-structs-and-enums.rs:1:1
108   |
109LL | trait Trait {}
110   | ^^^^^^^^^^^
111note: required by a bound in `Bar`
112  --> $DIR/on-structs-and-enums.rs:7:12
113   |
114LL | enum Bar<T:Trait> {
115   |            ^^^^^ required by this bound in `Bar`
116
117error: aborting due to 7 previous errors
118
119For more information about this error, try `rustc --explain E0277`.