]> git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/bound/on-structs-and-enums-locals.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / traits / bound / on-structs-and-enums-locals.stderr
1 error[E0277]: the trait bound `usize: Trait` is not satisfied
2 --> $DIR/on-structs-and-enums-locals.rs:15:14
3 |
4 LL | struct Foo<T:Trait> {
5 | ----- required by this bound in `Foo`
6 ...
7 LL | let baz: Foo<usize> = loop { };
8 | ^^^^^^^^^^ the trait `Trait` is not implemented for `usize`
9
10 error[E0277]: the trait bound `{integer}: Trait` is not satisfied
11 --> $DIR/on-structs-and-enums-locals.rs:10:15
12 |
13 LL | struct Foo<T:Trait> {
14 | ------------------- required by `Foo`
15 ...
16 LL | let foo = Foo {
17 | ^^^ the trait `Trait` is not implemented for `{integer}`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0277`.