1 error[E0308]: mismatched types
2 --> $DIR/slice-const-param-mismatch.rs:14:35
4 LL | let _: ConstString<"Hello"> = ConstString::<"World">;
5 | -------------------- ^^^^^^^^^^^^^^^^^^^^^^ expected `"Hello"`, found `"World"`
9 = note: expected struct `ConstString<"Hello">`
10 found struct `ConstString<"World">`
12 error[E0308]: mismatched types
13 --> $DIR/slice-const-param-mismatch.rs:16:33
15 LL | let _: ConstString<"ℇ㇈↦"> = ConstString::<"ℇ㇈↥">;
16 | ------------------- ^^^^^^^^^^^^^^^^^^^^^ expected `"ℇ㇈↦"`, found `"ℇ㇈↥"`
18 | expected due to this
20 = note: expected struct `ConstString<"ℇ㇈↦">`
21 found struct `ConstString<"ℇ㇈↥">`
23 error[E0308]: mismatched types
24 --> $DIR/slice-const-param-mismatch.rs:18:33
26 LL | let _: ConstBytes<b"AAA"> = ConstBytes::<b"BBB">;
27 | ------------------ ^^^^^^^^^^^^^^^^^^^^ expected `b"AAA"`, found `b"BBB"`
29 | expected due to this
31 = note: expected struct `ConstBytes<b"AAA">`
32 found struct `ConstBytes<b"BBB">`
34 error: aborting due to 3 previous errors
36 For more information about this error, try `rustc --explain E0308`.