]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/type-alias-impl-trait/issue-98608.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / type-alias-impl-trait / issue-98608.rs
index 1f89af0457653b066d09f2c0455f9cdf915329ff..5e026ea4096c30429a47ea531ca73e8ad19b3c49 100644 (file)
@@ -4,7 +4,7 @@ fn hi() -> impl Sized {
 
 fn main() {
     let b: Box<dyn Fn() -> Box<u8>> = Box::new(hi);
-    //~^ ERROR expected `fn() -> impl Sized {hi}` to be a fn item that returns `Box<u8>`, but it returns `impl Sized`
+    //~^ ERROR expected `hi` to be a fn item that returns `Box<u8>`, but it returns `impl Sized`
     let boxed = b();
     let null = *boxed;
     println!("{null:?}");