]> git.proxmox.com Git - rustc.git/blobdiff - tests/ui/type-alias-impl-trait/no_revealing_outside_defining_module.stderr
New upstream version 1.72.1+dfsg1
[rustc.git] / tests / ui / type-alias-impl-trait / no_revealing_outside_defining_module.stderr
index ae03a5b3e37bf7430dcf22bdbb6cf08bb72ba8f7..863282a0ff94dde4a8c4a1e177fe9bc748a26f43 100644 (file)
@@ -11,6 +11,11 @@ LL |     let _: &str = bomp();
    |
    = note: expected reference `&str`
             found opaque type `Boo`
+note: this item must have the opaque type in its signature in order to be able to register hidden types
+  --> $DIR/no_revealing_outside_defining_module.rs:14:4
+   |
+LL | fn bomp2() {
+   |    ^^^^^
 
 error[E0308]: mismatched types
   --> $DIR/no_revealing_outside_defining_module.rs:19:5
@@ -25,6 +30,11 @@ LL |     ""
    |
    = note: expected opaque type `Boo`
                 found reference `&'static str`
+note: this item must have the opaque type in its signature in order to be able to register hidden types
+  --> $DIR/no_revealing_outside_defining_module.rs:18:4
+   |
+LL | fn bomp() -> boo::Boo {
+   |    ^^^^
 
 error: aborting due to 2 previous errors