fork/rust

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

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

master
638 B20 linesraw
1error[E0277]: the trait bound `u8: Trait` is not satisfied
2  --> $DIR/issue-95665.rs:14:17
3   |
4LL |     static VAR: Struct<u8>;
5   |                 ^^^^^^^^^^ the trait `Trait` is not implemented for `u8`
6   |
7help: this trait has no implementations, consider adding one
8  --> $DIR/issue-95665.rs:4:1
9   |
10LL | pub trait Trait: {}
11   | ^^^^^^^^^^^^^^^
12note: required by a bound in `Struct`
13  --> $DIR/issue-95665.rs:6:22
14   |
15LL | pub struct Struct<T: Trait> {
16   |                      ^^^^^ required by this bound in `Struct`
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0277`.