]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/bound/on-structs-and-enums-static.stderr
Rollup merge of #87354 - Wind-River:2021_master, r=kennytm
[rust.git] / src / test / ui / traits / bound / on-structs-and-enums-static.stderr
1 error[E0277]: the trait bound `usize: Trait` is not satisfied
2   --> $DIR/on-structs-and-enums-static.rs:9:11
3    |
4 LL | struct Foo<T:Trait> {
5    |              ----- required by this bound in `Foo`
6 ...
7 LL | static X: Foo<usize> = Foo {
8    |           ^^^^^^^^^^ the trait `Trait` is not implemented for `usize`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0277`.