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