]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/traits/bound/on-structs-and-enums-xc1.stderr
Auto merge of #85305 - MarcusDunn:master, r=pnkfelix
[rust.git] / src / test / ui / traits / bound / on-structs-and-enums-xc1.stderr
index 08f0f20e7480a688acf89032a9125723a976416b..ada2445c1c96259871914cd9f06756dbb9468f3a 100644 (file)
@@ -15,7 +15,11 @@ error[E0277]: the trait bound `{integer}: Trait` is not satisfied
 LL |     let foo = Foo {
    |               ^^^ the trait `Trait` is not implemented for `{integer}`
    |
-   = note: required by `Foo`
+note: required by `Foo`
+  --> $DIR/auxiliary/on_structs_and_enums_xc.rs:5:1
+   |
+LL | pub struct Foo<T:Trait> {
+   | ^^^^^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to 2 previous errors