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