]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/defaults/mismatch.full.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / const-generics / defaults / mismatch.full.stderr
1 error[E0308]: mismatched types
2 --> $DIR/mismatch.rs:12:28
3 |
4 LL | let e: Example::<13> = ();
5 | ------------- ^^ expected struct `Example`, found `()`
6 | |
7 | expected due to this
8 |
9 = note: expected struct `Example`
10 found unit type `()`
11
12 error[E0308]: mismatched types
13 --> $DIR/mismatch.rs:15:34
14 |
15 LL | let e: Example2::<u32, 13> = ();
16 | ------------------- ^^ expected struct `Example2`, found `()`
17 | |
18 | expected due to this
19 |
20 = note: expected struct `Example2`
21 found unit type `()`
22
23 error[E0308]: mismatched types
24 --> $DIR/mismatch.rs:18:34
25 |
26 LL | let e: Example3::<13, u32> = ();
27 | ------------------- ^^ expected struct `Example3`, found `()`
28 | |
29 | expected due to this
30 |
31 = note: expected struct `Example3`
32 found unit type `()`
33
34 error[E0308]: mismatched types
35 --> $DIR/mismatch.rs:21:28
36 |
37 LL | let e: Example3::<7> = ();
38 | ------------- ^^ expected struct `Example3`, found `()`
39 | |
40 | expected due to this
41 |
42 = note: expected struct `Example3<7_usize>`
43 found unit type `()`
44
45 error[E0308]: mismatched types
46 --> $DIR/mismatch.rs:24:28
47 |
48 LL | let e: Example4::<7> = ();
49 | ------------- ^^ expected struct `Example4`, found `()`
50 | |
51 | expected due to this
52 |
53 = note: expected struct `Example4<7_usize>`
54 found unit type `()`
55
56 error: aborting due to 5 previous errors
57
58 For more information about this error, try `rustc --explain E0308`.