2022-06-16 04:44:07 +00:00
|
|
|
error[E0277]: the trait bound `u8: Trait` is not satisfied
|
|
|
|
--> $DIR/issue-95665.rs:14:17
|
|
|
|
|
|
|
|
|
LL | static VAR: Struct<u8>;
|
|
|
|
| ^^^^^^^^^^ the trait `Trait` is not implemented for `u8`
|
|
|
|
|
|
2023-09-10 03:33:07 +00:00
|
|
|
help: this trait has no implementations, consider adding one
|
|
|
|
--> $DIR/issue-95665.rs:4:1
|
|
|
|
|
|
|
|
|
LL | pub trait Trait: {}
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2022-06-16 04:44:07 +00:00
|
|
|
note: required by a bound in `Struct`
|
|
|
|
--> $DIR/issue-95665.rs:6:22
|
|
|
|
|
|
|
|
|
LL | pub struct Struct<T: Trait> {
|
|
|
|
| ^^^^^ required by this bound in `Struct`
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2022-06-16 04:44:07 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|