fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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