2019-09-27 22:07:22 -05:00
|
|
|
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
|
|
|
|
--> $DIR/slice-const-param-mismatch.rs:1:12
|
|
|
|
|
|
|
|
|
LL | #![feature(const_generics)]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `#[warn(incomplete_features)]` on by default
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2019-09-28 14:39:48 -05:00
|
|
|
--> $DIR/slice-const-param-mismatch.rs:9:35
|
2019-09-27 22:07:22 -05:00
|
|
|
|
|
|
|
|
LL | let _: ConstString<"Hello"> = ConstString::<"World">;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ expected `"Hello"`, found `"World"`
|
|
|
|
|
|
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
|
2019-09-28 14:39:48 -05:00
|
|
|
--> $DIR/slice-const-param-mismatch.rs:11:33
|
|
|
|
|
|
|
|
|
LL | let _: ConstString<"ℇ㇈↦"> = ConstString::<"ℇ㇈↥">;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ expected `"ℇ㇈↦"`, found `"ℇ㇈↥"`
|
|
|
|
|
|
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
|
|
|
|
--> $DIR/slice-const-param-mismatch.rs:13:33
|
2019-09-27 22:07:22 -05:00
|
|
|
|
|
|
|
|
LL | let _: ConstBytes<b"AAA"> = ConstBytes::<b"BBB">;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ expected `b"AAA"`, found `b"BBB"`
|
|
|
|
|
|
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
|
|
|
|
2019-09-28 14:39:48 -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`.
|