]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/trait-bounds-on-structs-and-enums-static.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / traits / trait-bounds-on-structs-and-enums-static.stderr
CommitLineData
b7449926 1error[E0277]: the trait bound `usize: Trait` is not satisfied
0731742a 2 --> $DIR/trait-bounds-on-structs-and-enums-static.rs:9:11
b7449926 3 |
e1599b0c 4LL | struct Foo<T:Trait> {
ba9703b0 5 | ----- required by this bound in `Foo`
e1599b0c 6...
0bf4aa26
XL
7LL | static X: Foo<usize> = Foo {
8 | ^^^^^^^^^^ the trait `Trait` is not implemented for `usize`
b7449926
XL
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0277`.