]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-67039-unsound-pin-partialeq.stderr
point at private fields in struct literal
[rust.git] / src / test / ui / issues / issue-67039-unsound-pin-partialeq.stderr
index 036a9300a174db33de6bd5f16cf1204aa2375fb8..733456a1a8bd1b22751c39944b4bc98d4e617dc2 100644 (file)
@@ -4,8 +4,8 @@ error[E0271]: type mismatch resolving `<Rc<Apple> as Deref>::Target == Rc<Apple>
 LL |     let _ = Pin::new(Apple) == Rc::pin(Apple);
    |                             ^^ expected struct `Apple`, found struct `Rc`
    |
-   = note: expected type `Apple`
-            found struct `Rc<Apple>`
+   = note: expected struct `Apple`
+              found struct `Rc<Apple>`
    = note: required because of the requirements on the impl of `PartialEq<Pin<Rc<Apple>>>` for `Pin<Apple>`
 
 error: aborting due to previous error