]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/associated-type-bounds/assoc-type-eq-with-dyn-atb-fail.rs
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / associated-type-bounds / assoc-type-eq-with-dyn-atb-fail.rs
index 498a555c441b8f19312a0aad3fc74de94544022b..73b23da5bcb66528d55385ef3179ca718852de42 100644 (file)
@@ -12,7 +12,9 @@
 
 fn main() {}
 
-trait Bar { type Assoc; }
+trait Bar {
+    type Assoc;
+}
 
 trait Thing {
     type Out;
@@ -20,11 +22,14 @@ trait Thing {
 }
 
 struct AssocNoCopy;
-impl Bar for AssocNoCopy { type Assoc = String; }
+impl Bar for AssocNoCopy {
+    type Assoc = String;
+}
 
 impl Thing for AssocNoCopy {
     type Out = Box<dyn Bar<Assoc: Copy>>;
     //~^ ERROR the trait bound `String: Copy` is not satisfied
+    //~| ERROR the trait bound `String: Copy` is not satisfied
 
     fn func() -> Self::Out {
         Box::new(AssocNoCopy)