]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/traits/bound/on-structs-and-enums-locals.stderr
Auto merge of #84959 - camsteffen:lint-suggest-group, r=estebank
[rust.git] / src / test / ui / traits / bound / on-structs-and-enums-locals.stderr
index 967b7320ab6cd9d4cc64009f465615d2a05efc38..7480d243f4e62fc3000c38c6c1694089583db0f2 100644 (file)
@@ -10,11 +10,14 @@ LL |     let baz: Foo<usize> = loop { };
 error[E0277]: the trait bound `{integer}: Trait` is not satisfied
   --> $DIR/on-structs-and-enums-locals.rs:10:15
    |
-LL | struct Foo<T:Trait> {
-   | ------------------- required by `Foo`
-...
 LL |     let foo = Foo {
    |               ^^^ the trait `Trait` is not implemented for `{integer}`
+   |
+note: required by `Foo`
+  --> $DIR/on-structs-and-enums-locals.rs:5:1
+   |
+LL | struct Foo<T:Trait> {
+   | ^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to 2 previous errors