]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/defaults/mismatch.stderr
Auto merge of #106908 - cjgillot:copyprop-ssa, r=oli-obk
[rust.git] / tests / ui / const-generics / defaults / mismatch.stderr
1 error[E0308]: mismatched types
2   --> $DIR/mismatch.rs:7:26
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:10:32
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:13:32
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:16:26
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>`
43            found unit type `()`
44
45 error[E0308]: mismatched types
46   --> $DIR/mismatch.rs:19:26
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>`
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`.