@@ -7,7 +7,7 @@ LL | #![feature(const_generics)]
77 = note: `#[warn(incomplete_features)]` on by default
88
99error[E0308]: mismatched types
10- --> $DIR/slice-const-param-mismatch.rs:8 :35
10+ --> $DIR/slice-const-param-mismatch.rs:9 :35
1111 |
1212LL | let _: ConstString<"Hello"> = ConstString::<"World">;
1313 | ^^^^^^^^^^^^^^^^^^^^^^ expected `"Hello"`, found `"World"`
@@ -16,14 +16,23 @@ LL | let _: ConstString<"Hello"> = ConstString::<"World">;
1616 found type `ConstString<>`
1717
1818error[E0308]: mismatched types
19- --> $DIR/slice-const-param-mismatch.rs:10:33
19+ --> $DIR/slice-const-param-mismatch.rs:11:33
20+ |
21+ LL | let _: ConstString<"ℇ㇈↦"> = ConstString::<"ℇ㇈↥">;
22+ | ^^^^^^^^^^^^^^^^^^^^^ expected `"ℇ㇈↦"`, found `"ℇ㇈↥"`
23+ |
24+ = note: expected type `ConstString<>`
25+ found type `ConstString<>`
26+
27+ error[E0308]: mismatched types
28+ --> $DIR/slice-const-param-mismatch.rs:13:33
2029 |
2130LL | let _: ConstBytes<b"AAA"> = ConstBytes::<b"BBB">;
2231 | ^^^^^^^^^^^^^^^^^^^^ expected `b"AAA"`, found `b"BBB"`
2332 |
2433 = note: expected type `ConstBytes<>`
2534 found type `ConstBytes<>`
2635
27- error: aborting due to 2 previous errors
36+ error: aborting due to 3 previous errors
2837
2938For more information about this error, try `rustc --explain E0308`.
0 commit comments