]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-58022.rs
Rollup merge of #100168 - WaffleLapkin:improve_diagnostics_for_missing_type_in_a_cons...
[rust.git] / src / test / ui / issues / issue-58022.rs
index e4b9b3b53a69e1d897bd891b08d23035825b3d8d..2a8a1eaa6d3a3054ad5c5494ed28039a3d7a91ad 100644 (file)
@@ -2,7 +2,7 @@ pub trait Foo: Sized {
     const SIZE: usize;
 
     fn new(slice: &[u8; Foo::SIZE]) -> Self;
-    //~^ ERROR: type annotations needed
+    //~^ ERROR: E0790
 }
 
 pub struct Bar<T: ?Sized>(T);