]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/slice-const-param-mismatch.full.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / const-generics / slice-const-param-mismatch.full.stderr
CommitLineData
e74abb32 1error[E0308]: mismatched types
5869c6ff 2 --> $DIR/slice-const-param-mismatch.rs:14:35
e74abb32
XL
3 |
4LL | let _: ConstString<"Hello"> = ConstString::<"World">;
60c5eb7d
XL
5 | -------------------- ^^^^^^^^^^^^^^^^^^^^^^ expected `"Hello"`, found `"World"`
6 | |
7 | expected due to this
e74abb32 8 |
60c5eb7d
XL
9 = note: expected struct `ConstString<"Hello">`
10 found struct `ConstString<"World">`
e74abb32
XL
11
12error[E0308]: mismatched types
5869c6ff 13 --> $DIR/slice-const-param-mismatch.rs:16:33
e74abb32
XL
14 |
15LL | let _: ConstString<"ℇ㇈↦"> = ConstString::<"ℇ㇈↥">;
60c5eb7d
XL
16 | ------------------- ^^^^^^^^^^^^^^^^^^^^^ expected `"ℇ㇈↦"`, found `"ℇ㇈↥"`
17 | |
18 | expected due to this
e74abb32 19 |
60c5eb7d
XL
20 = note: expected struct `ConstString<"ℇ㇈↦">`
21 found struct `ConstString<"ℇ㇈↥">`
e74abb32
XL
22
23error[E0308]: mismatched types
5869c6ff 24 --> $DIR/slice-const-param-mismatch.rs:18:33
e74abb32
XL
25 |
26LL | let _: ConstBytes<b"AAA"> = ConstBytes::<b"BBB">;
60c5eb7d
XL
27 | ------------------ ^^^^^^^^^^^^^^^^^^^^ expected `b"AAA"`, found `b"BBB"`
28 | |
29 | expected due to this
e74abb32 30 |
60c5eb7d
XL
31 = note: expected struct `ConstBytes<b"AAA">`
32 found struct `ConstBytes<b"BBB">`
e74abb32 33
3dfed10e 34error: aborting due to 3 previous errors
e74abb32
XL
35
36For more information about this error, try `rustc --explain E0308`.