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