]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/bound/on-structs-and-enums-locals.stderr
Auto merge of #87153 - michaelwoerister:debuginfo-names-dyn-trait-projection-bounds...
[rust.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 |     let foo = Foo {
14    |               ^^^ the trait `Trait` is not implemented for `{integer}`
15    |
16 note: required by `Foo`
17   --> $DIR/on-structs-and-enums-locals.rs:5:1
18    |
19 LL | struct Foo<T:Trait> {
20    | ^^^^^^^^^^^^^^^^^^^
21
22 error: aborting due to 2 previous errors
23
24 For more information about this error, try `rustc --explain E0277`.