]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/traits/bound/on-structs-and-enums-xc1.stderr
Rollup merge of #87759 - m-ou-se:linux-process-sealed, r=jyn514
[rust.git] / src / test / ui / traits / bound / on-structs-and-enums-xc1.stderr
index 08f0f20e7480a688acf89032a9125723a976416b..7d54a559e8b7ee0064112b55c6d47b76e3aafdbf 100644 (file)
@@ -3,7 +3,7 @@ error[E0277]: the trait bound `f64: Trait` is not satisfied
    |
 LL |     let bar: Bar<f64> = return;
    |              ^^^^^^^^ the trait `Trait` is not implemented for `f64`
-   | 
+   |
   ::: $DIR/auxiliary/on_structs_and_enums_xc.rs:9:16
    |
 LL | pub enum Bar<T:Trait> {
@@ -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