2019-09-28 03:07:22 +00:00
|
|
|
error[E0308]: mismatched types
|
2020-11-17 10:44:21 +00:00
|
|
|
--> $DIR/slice-const-param-mismatch.rs:14:35
|
2019-09-28 03:07:22 +00:00
|
|
|
|
|
|
|
|
LL | let _: ConstString<"Hello"> = ConstString::<"World">;
|
2019-11-19 05:00:24 +00:00
|
|
|
| -------------------- ^^^^^^^^^^^^^^^^^^^^^^ expected `"Hello"`, found `"World"`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-09-28 03:07:22 +00:00
|
|
|
|
|
2019-11-13 22:16:56 +00:00
|
|
|
= note: expected struct `ConstString<"Hello">`
|
|
|
|
found struct `ConstString<"World">`
|
2019-09-28 03:07:22 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2020-11-17 10:44:21 +00:00
|
|
|
--> $DIR/slice-const-param-mismatch.rs:16:33
|
2019-09-28 19:39:48 +00:00
|
|
|
|
|
|
|
|
LL | let _: ConstString<"ℇ㇈↦"> = ConstString::<"ℇ㇈↥">;
|
2019-11-19 05:00:24 +00:00
|
|
|
| ------------------- ^^^^^^^^^^^^^^^^^^^^^ expected `"ℇ㇈↦"`, found `"ℇ㇈↥"`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-09-28 19:39:48 +00:00
|
|
|
|
|
2019-11-13 22:16:56 +00:00
|
|
|
= note: expected struct `ConstString<"ℇ㇈↦">`
|
|
|
|
found struct `ConstString<"ℇ㇈↥">`
|
2019-09-28 19:39:48 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2020-11-17 10:44:21 +00:00
|
|
|
--> $DIR/slice-const-param-mismatch.rs:18:33
|
2019-09-28 03:07:22 +00:00
|
|
|
|
|
|
|
|
LL | let _: ConstBytes<b"AAA"> = ConstBytes::<b"BBB">;
|
2019-11-19 05:00:24 +00:00
|
|
|
| ------------------ ^^^^^^^^^^^^^^^^^^^^ expected `b"AAA"`, found `b"BBB"`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-09-28 03:07:22 +00:00
|
|
|
|
|
2019-11-13 22:16:56 +00:00
|
|
|
= note: expected struct `ConstBytes<b"AAA">`
|
|
|
|
found struct `ConstBytes<b"BBB">`
|
2019-09-28 03:07:22 +00:00
|
|
|
|
2020-08-09 05:01:19 +00:00
|
|
|
error: aborting due to 3 previous errors
|
2019-09-28 03:07:22 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|