]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/suggestions/missing-trait-bounds-for-method-call.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / suggestions / missing-trait-bounds-for-method-call.stderr
index c7376b0007f974285a083c5b7b888c4a0c259583..0a64a0d7d5ebcdf61a14bd98cfeabd88ee2d3f73 100644 (file)
@@ -8,10 +8,10 @@ LL |         self.foo();
    |              ^^^ method cannot be called on `&Foo<T>` due to unsatisfied trait bounds
    |
    = note: the following trait bounds were not satisfied:
-           `T: Bar`
-           which is required by `Foo<T>: Bar`
            `T: Default`
            which is required by `Foo<T>: Bar`
+           `T: Bar`
+           which is required by `Foo<T>: Bar`
 help: consider restricting the type parameters to satisfy the trait bounds
    |
 LL | struct Foo<T> where T: Bar, T: Default {