fork/rust

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

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

master
1.2 KiB37 linesraw
1error[E0277]: the trait bound `usize: Trait` is not satisfied
2  --> $DIR/on-structs-and-enums-locals.rs:15:14
3   |
4LL |     let baz: Foo<usize> = loop { };
5   |              ^^^^^^^^^^ the trait `Trait` is not implemented for `usize`
6   |
7help: this trait has no implementations, consider adding one
8  --> $DIR/on-structs-and-enums-locals.rs:1:1
9   |
10LL | trait Trait {
11   | ^^^^^^^^^^^
12note: required by a bound in `Foo`
13  --> $DIR/on-structs-and-enums-locals.rs:5:14
14   |
15LL | struct Foo<T:Trait> {
16   |              ^^^^^ required by this bound in `Foo`
17
18error[E0277]: the trait bound `{integer}: Trait` is not satisfied
19  --> $DIR/on-structs-and-enums-locals.rs:11:12
20   |
21LL |         x: 3
22   |            ^ the trait `Trait` is not implemented for `{integer}`
23   |
24help: this trait has no implementations, consider adding one
25  --> $DIR/on-structs-and-enums-locals.rs:1:1
26   |
27LL | trait Trait {
28   | ^^^^^^^^^^^
29note: required by a bound in `Foo`
30  --> $DIR/on-structs-and-enums-locals.rs:5:14
31   |
32LL | struct Foo<T:Trait> {
33   |              ^^^^^ required by this bound in `Foo`
34
35error: aborting due to 2 previous errors
36
37For more information about this error, try `rustc --explain E0277`.