]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/generic-associated-types/issue-80433.rs
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / issue-80433.rs
index ea65f05de23d74ee763cbb38cbcccbfaa0396322..fd81804f234e51797bfa2ccb5e4cca26eeaedd75 100644 (file)
@@ -8,7 +8,6 @@ struct E<T> {
 
 trait TestMut {
     type Output<'a>;
-      //~^ ERROR missing generics
     fn test_mut<'a>(&'a mut self) -> Self::Output<'a>;
 }
 
@@ -23,6 +22,7 @@ where
 }
 
 fn test_simpler<'a>(dst: &'a mut impl TestMut<Output = &'a mut f32>)
+  //~^ ERROR missing generics for associated type
 {
     for n in 0i16..100 {
         *dst.test_mut() = n.into();