fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1warning: the feature `const_generics` is incomplete and may cause the compiler to crash 2 --> $DIR/slice-const-param-mismatch.rs:1:12 3 | 4LL | #![feature(const_generics)] 5 | ^^^^^^^^^^^^^^ 6 | 7 = note: `#[warn(incomplete_features)]` on by default 8 9error[E0308]: mismatched types 10 --> $DIR/slice-const-param-mismatch.rs:9:35 11 | 12LL | let _: ConstString<"Hello"> = ConstString::<"World">; 13 | -------------------- ^^^^^^^^^^^^^^^^^^^^^^ expected `"Hello"`, found `"World"` 14 | | 15 | expected due to this 16 | 17 = note: expected struct `ConstString<"Hello">` 18 found struct `ConstString<"World">` 19 20error[E0308]: mismatched types 21 --> $DIR/slice-const-param-mismatch.rs:11:33 22 | 23LL | let _: ConstString<"ℇ㇈↦"> = ConstString::<"ℇ㇈↥">; 24 | ------------------- ^^^^^^^^^^^^^^^^^^^^^ expected `"ℇ㇈↦"`, found `"ℇ㇈↥"` 25 | | 26 | expected due to this 27 | 28 = note: expected struct `ConstString<"ℇ㇈↦">` 29 found struct `ConstString<"ℇ㇈↥">` 30 31error[E0308]: mismatched types 32 --> $DIR/slice-const-param-mismatch.rs:13:33 33 | 34LL | let _: ConstBytes<b"AAA"> = ConstBytes::<b"BBB">; 35 | ------------------ ^^^^^^^^^^^^^^^^^^^^ expected `b"AAA"`, found `b"BBB"` 36 | | 37 | expected due to this 38 | 39 = note: expected struct `ConstBytes<b"AAA">` 40 found struct `ConstBytes<b"BBB">` 41 42error: aborting due to 3 previous errors 43 44For more information about this error, try `rustc --explain E0308`.