1 error[E0308]: mismatched types
2 --> $DIR/coerce-to-bang.rs:6:17
4 LL | foo(return, 22, 44);
5 | ^^ expected `!`, found integer
7 = note: expected type `!`
10 error[E0308]: mismatched types
11 --> $DIR/coerce-to-bang.rs:18:13
13 LL | foo(22, 44, return);
14 | ^^ expected `!`, found integer
16 = note: expected type `!`
17 found type `{integer}`
19 error[E0308]: mismatched types
20 --> $DIR/coerce-to-bang.rs:26:12
22 LL | foo(a, b, c); // ... and hence a reference to `a` is expected to diverge.
23 | ^ expected `!`, found integer
25 = note: expected type `!`
26 found type `{integer}`
28 error[E0308]: mismatched types
29 --> $DIR/coerce-to-bang.rs:36:12
32 | ^ expected `!`, found integer
34 = note: expected type `!`
35 found type `{integer}`
37 error[E0308]: mismatched types
38 --> $DIR/coerce-to-bang.rs:45:12
41 | ^ expected `!`, found integer
43 = note: expected type `!`
44 found type `{integer}`
46 error[E0308]: mismatched types
47 --> $DIR/coerce-to-bang.rs:50:21
49 LL | let x: [!; 2] = [return, 22];
50 | ------ ^^^^^^^^^^^^ expected `!`, found integer
52 | expected due to this
54 = note: expected array `[!; 2]`
55 found array `[{integer}; 2]`
57 error[E0308]: mismatched types
58 --> $DIR/coerce-to-bang.rs:55:22
60 LL | let x: [!; 2] = [22, return];
61 | ^^ expected `!`, found integer
63 = note: expected type `!`
64 found type `{integer}`
66 error[E0308]: mismatched types
67 --> $DIR/coerce-to-bang.rs:60:37
69 LL | let x: (usize, !, usize) = (22, 44, 66);
70 | ^^ expected `!`, found integer
72 = note: expected type `!`
73 found type `{integer}`
75 error[E0308]: mismatched types
76 --> $DIR/coerce-to-bang.rs:65:41
78 LL | let x: (usize, !, usize) = (return, 44, 66);
79 | ^^ expected `!`, found integer
81 = note: expected type `!`
82 found type `{integer}`
84 error[E0308]: mismatched types
85 --> $DIR/coerce-to-bang.rs:76:37
87 LL | let x: (usize, !, usize) = (22, 44, return);
88 | ^^ expected `!`, found integer
90 = note: expected type `!`
91 found type `{integer}`
93 error: aborting due to 10 previous errors
95 For more information about this error, try `rustc --explain E0308`.