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