]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/defaults/mismatch.full.stderr
Auto merge of #83386 - mark-i-m:stabilize-pat2015, r=nikomatsakis
[rust.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 error[E0308]: mismatched types
10   --> $DIR/mismatch.rs:14:34
11    |
12 LL |     let e: Example2::<u32, 13> = ();
13    |            -------------------   ^^ expected struct `Example2`, found `()`
14    |            |
15    |            expected due to this
16    |
17    = note: expected struct `Example2`
18            found unit type `()`
19
20 error[E0308]: mismatched types
21   --> $DIR/mismatch.rs:16:34
22    |
23 LL |     let e: Example3::<13, u32> = ();
24    |            -------------------   ^^ expected struct `Example3`, found `()`
25    |            |
26    |            expected due to this
27    |
28    = note: expected struct `Example3`
29            found unit type `()`
30
31 error[E0308]: mismatched types
32   --> $DIR/mismatch.rs:18:28
33    |
34 LL |     let e: Example3::<7> = ();
35    |            -------------   ^^ expected struct `Example3`, found `()`
36    |            |
37    |            expected due to this
38    |
39    = note: expected struct `Example3<7_usize>`
40            found unit type `()`
41
42 error[E0308]: mismatched types
43   --> $DIR/mismatch.rs:22:28
44    |
45 LL |     let e: Example4::<7> = ();
46    |            -------------   ^^ expected struct `Example4`, found `()`
47    |            |
48    |            expected due to this
49
50 error: aborting due to 5 previous errors
51
52 For more information about this error, try `rustc --explain E0308`.