]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/traits/bound/on-structs-and-enums-locals.stderr
Auto merge of #101017 - JohnTitor:rollup-73f2fhb, r=JohnTitor
[rust.git] / src / test / ui / traits / bound / on-structs-and-enums-locals.stderr
index c9068a270020d323dade48baed4b3725aa63be0e..20bbe69c059f84e1e42341aeffe3c14495edebe0 100644 (file)
@@ -11,10 +11,10 @@ LL | struct Foo<T:Trait> {
    |              ^^^^^ required by this bound in `Foo`
 
 error[E0277]: the trait bound `{integer}: Trait` is not satisfied
-  --> $DIR/on-structs-and-enums-locals.rs:10:15
+  --> $DIR/on-structs-and-enums-locals.rs:11:12
    |
-LL |     let foo = Foo {
-   |               ^^^ the trait `Trait` is not implemented for `{integer}`
+LL |         x: 3
+   |            ^ the trait `Trait` is not implemented for `{integer}`
    |
 note: required by a bound in `Foo`
   --> $DIR/on-structs-and-enums-locals.rs:5:14