]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/specialization/defaultimpl/specialization-wfcheck.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / specialization / defaultimpl / specialization-wfcheck.stderr
index ee7c002b16db1310db6f7dca2b93f83ea397e375..f499c1f5698595e1de2a708386d8d5605265e67a 100644 (file)
@@ -1,14 +1,16 @@
 error[E0277]: the trait bound `U: std::cmp::Eq` is not satisfied
   --> $DIR/specialization-wfcheck.rs:7:17
    |
+LL | trait Foo<'a, T: Eq + 'a> { }
+   |                  -- required by this bound in `Foo`
+LL | 
 LL | default impl<U> Foo<'static, U> for () {}
    |                 ^^^^^^^^^^^^^^^ the trait `std::cmp::Eq` is not implemented for `U`
    |
-help: consider restricting this type parameter with `U: std::cmp::Eq`
-  --> $DIR/specialization-wfcheck.rs:7:14
+help: consider restricting type parameter `U`
    |
-LL | default impl<U> Foo<'static, U> for () {}
-   |              ^
+LL | default impl<U: std::cmp::Eq> Foo<'static, U> for () {}
+   |               ^^^^^^^^^^^^^^
 
 error: aborting due to previous error