]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/type-alias-impl-trait/no_revealing_outside_defining_module.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / type-alias-impl-trait / no_revealing_outside_defining_module.stderr
index 5e5826978fc7eb863c32495954fe2572ac8d91cd..aaf5e286643f96ef436a081d3ae60dff26980037 100644 (file)
@@ -4,8 +4,8 @@ error[E0308]: mismatched types
 LL |     let _: &str = bomp();
    |                   ^^^^^^ expected &str, found opaque type
    |
-   = note: expected type `&str`
-              found type `Boo`
+   = note: expected reference `&str`
+            found opaque type `Boo`
 
 error[E0308]: mismatched types
   --> $DIR/no_revealing_outside_defining_module.rs:19:5
@@ -13,10 +13,10 @@ error[E0308]: mismatched types
 LL | fn bomp() -> boo::Boo {
    |              -------- expected `Boo` because of return type
 LL |     ""
-   |     ^^ expected opaque type, found reference
+   |     ^^ expected opaque type, found &str
    |
-   = note: expected type `Boo`
-              found type `&'static str`
+   = note: expected opaque type `Boo`
+                found reference `&'static str`
 
 error: aborting due to 2 previous errors