]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/const-generics/slice-const-param-mismatch.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / const-generics / slice-const-param-mismatch.stderr
index 380a70d664e05939a032bf5041b79ffd158a82f5..a588d82318b94934fbc70083cb5b3afc4bee3f4e 100644 (file)
@@ -10,28 +10,34 @@ error[E0308]: mismatched types
   --> $DIR/slice-const-param-mismatch.rs:9:35
    |
 LL |     let _: ConstString<"Hello"> = ConstString::<"World">;
-   |                                   ^^^^^^^^^^^^^^^^^^^^^^ expected `"Hello"`, found `"World"`
+   |            --------------------   ^^^^^^^^^^^^^^^^^^^^^^ expected `"Hello"`, found `"World"`
+   |            |
+   |            expected due to this
    |
-   = note: expected type `ConstString<"Hello">`
-              found type `ConstString<"World">`
+   = note: expected struct `ConstString<"Hello">`
+              found struct `ConstString<"World">`
 
 error[E0308]: mismatched types
   --> $DIR/slice-const-param-mismatch.rs:11:33
    |
 LL |     let _: ConstString<"ℇ㇈↦"> = ConstString::<"ℇ㇈↥">;
-   |                                  ^^^^^^^^^^^^^^^^^^^^^ expected `"ℇ㇈↦"`, found `"ℇ㇈↥"`
+   |            -------------------   ^^^^^^^^^^^^^^^^^^^^^ expected `"ℇ㇈↦"`, found `"ℇ㇈↥"`
+   |            |
+   |            expected due to this
    |
-   = note: expected type `ConstString<"ℇ㇈↦">`
-              found type `ConstString<"ℇ㇈↥">`
+   = note: expected struct `ConstString<"ℇ㇈↦">`
+              found struct `ConstString<"ℇ㇈↥">`
 
 error[E0308]: mismatched types
   --> $DIR/slice-const-param-mismatch.rs:13:33
    |
 LL |     let _: ConstBytes<b"AAA"> = ConstBytes::<b"BBB">;
-   |                                 ^^^^^^^^^^^^^^^^^^^^ expected `b"AAA"`, found `b"BBB"`
+   |            ------------------   ^^^^^^^^^^^^^^^^^^^^ expected `b"AAA"`, found `b"BBB"`
+   |            |
+   |            expected due to this
    |
-   = note: expected type `ConstBytes<b"AAA">`
-              found type `ConstBytes<b"BBB">`
+   = note: expected struct `ConstBytes<b"AAA">`
+              found struct `ConstBytes<b"BBB">`
 
 error: aborting due to 3 previous errors