]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/hrtb/hrtb-higher-ranker-supertraits-transitive.stderr
Merge branch 'master' into rusty-hermit
[rust.git] / src / test / ui / hrtb / hrtb-higher-ranker-supertraits-transitive.stderr
index c2cc8ebad272658a2f8f2bbb3ad8397f052467be..afcb467ad471170a2e9503b2edf7404dc1218182 100644 (file)
@@ -6,10 +6,11 @@ LL | fn want_bar_for_any_ccx<B>(b: &B)
 LL |     where B : for<'ccx> Bar<'ccx>
    |               ------------------- required by this bound in `want_bar_for_any_ccx`
 ...
+LL |     where B : Qux
+   |                  - help: consider further restricting type parameter `B`: `, for<'ccx> B: Bar<'ccx>`
+...
 LL |     want_bar_for_any_ccx(b);
    |                          ^ the trait `for<'ccx> Bar<'ccx>` is not implemented for `B`
-   |
-   = help: consider adding a `where for<'ccx> B: Bar<'ccx>` bound
 
 error: aborting due to previous error