@@ -7,7 +7,7 @@ LL | #![feature(const_generics)]
7
7
= note: `#[warn(incomplete_features)]` on by default
8
8
9
9
error[E0308]: mismatched types
10
- --> $DIR/slice-const-param-mismatch.rs:8 :35
10
+ --> $DIR/slice-const-param-mismatch.rs:9 :35
11
11
|
12
12
LL | let _: ConstString<"Hello"> = ConstString::<"World">;
13
13
| ^^^^^^^^^^^^^^^^^^^^^^ expected `"Hello"`, found `"World"`
@@ -16,14 +16,23 @@ LL | let _: ConstString<"Hello"> = ConstString::<"World">;
16
16
found type `ConstString<>`
17
17
18
18
error[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
20
29
|
21
30
LL | let _: ConstBytes<b"AAA"> = ConstBytes::<b"BBB">;
22
31
| ^^^^^^^^^^^^^^^^^^^^ expected `b"AAA"`, found `b"BBB"`
23
32
|
24
33
= note: expected type `ConstBytes<>`
25
34
found type `ConstBytes<>`
26
35
27
- error: aborting due to 2 previous errors
36
+ error: aborting due to 3 previous errors
28
37
29
38
For more information about this error, try `rustc --explain E0308`.
0 commit comments