summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/defaults/mismatch.stderr
blob: 52c54aace5f16726356081b592aee88581f5e180 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
error[E0308]: mismatched types
  --> $DIR/mismatch.rs:7:26
   |
LL |     let e: Example<13> = ();
   |            -----------   ^^ expected struct `Example`, found `()`
   |            |
   |            expected due to this
   |
   = note: expected struct `Example`
           found unit type `()`

error[E0308]: mismatched types
  --> $DIR/mismatch.rs:10:32
   |
LL |     let e: Example2<u32, 13> = ();
   |            -----------------   ^^ expected struct `Example2`, found `()`
   |            |
   |            expected due to this
   |
   = note: expected struct `Example2`
           found unit type `()`

error[E0308]: mismatched types
  --> $DIR/mismatch.rs:13:32
   |
LL |     let e: Example3<13, u32> = ();
   |            -----------------   ^^ expected struct `Example3`, found `()`
   |            |
   |            expected due to this
   |
   = note: expected struct `Example3`
           found unit type `()`

error[E0308]: mismatched types
  --> $DIR/mismatch.rs:16:26
   |
LL |     let e: Example3<7> = ();
   |            -----------   ^^ expected struct `Example3`, found `()`
   |            |
   |            expected due to this
   |
   = note: expected struct `Example3<7>`
           found unit type `()`

error[E0308]: mismatched types
  --> $DIR/mismatch.rs:19:26
   |
LL |     let e: Example4<7> = ();
   |            -----------   ^^ expected struct `Example4`, found `()`
   |            |
   |            expected due to this
   |
   = note: expected struct `Example4<7>`
           found unit type `()`

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0308`.