1 error[E0308]: mismatched types
2 --> $DIR/coerce-to-bang.rs:6:17
4 LL | foo(return, 22, 44);
5 | --- ^^ expected `!`, found integer
7 | arguments to this function are incorrect
9 = note: expected type `!`
10 found type `{integer}`
11 note: function defined here
12 --> $DIR/coerce-to-bang.rs:3:4
14 LL | fn foo(x: usize, y: !, z: usize) { }
17 error[E0308]: mismatched types
18 --> $DIR/coerce-to-bang.rs:18:13
20 LL | foo(22, 44, return);
21 | --- ^^ expected `!`, found integer
23 | arguments to this function are incorrect
25 = note: expected type `!`
26 found type `{integer}`
27 note: function defined here
28 --> $DIR/coerce-to-bang.rs:3:4
30 LL | fn foo(x: usize, y: !, z: usize) { }
33 error[E0308]: mismatched types
34 --> $DIR/coerce-to-bang.rs:26:12
36 LL | foo(a, b, c); // ... and hence a reference to `a` is expected to diverge.
37 | --- ^ expected `!`, found integer
39 | arguments to this function are incorrect
41 = note: expected type `!`
42 found type `{integer}`
43 note: function defined here
44 --> $DIR/coerce-to-bang.rs:3:4
46 LL | fn foo(x: usize, y: !, z: usize) { }
49 error[E0308]: mismatched types
50 --> $DIR/coerce-to-bang.rs:36:12
53 | --- ^ expected `!`, found integer
55 | arguments to this function are incorrect
57 = note: expected type `!`
58 found type `{integer}`
59 note: function defined here
60 --> $DIR/coerce-to-bang.rs:3:4
62 LL | fn foo(x: usize, y: !, z: usize) { }
65 error[E0308]: mismatched types
66 --> $DIR/coerce-to-bang.rs:45:12
69 | --- ^ expected `!`, found integer
71 | arguments to this function are incorrect
73 = note: expected type `!`
74 found type `{integer}`
75 note: function defined here
76 --> $DIR/coerce-to-bang.rs:3:4
78 LL | fn foo(x: usize, y: !, z: usize) { }
81 error[E0308]: mismatched types
82 --> $DIR/coerce-to-bang.rs:50:21
84 LL | let x: [!; 2] = [return, 22];
85 | ------ ^^^^^^^^^^^^ expected `!`, found integer
87 | expected due to this
89 = note: expected array `[!; 2]`
90 found array `[{integer}; 2]`
92 error[E0308]: mismatched types
93 --> $DIR/coerce-to-bang.rs:55:22
95 LL | let x: [!; 2] = [22, return];
96 | ^^ expected `!`, found integer
98 = note: expected type `!`
99 found type `{integer}`
101 error[E0308]: mismatched types
102 --> $DIR/coerce-to-bang.rs:60:37
104 LL | let x: (usize, !, usize) = (22, 44, 66);
105 | ^^ expected `!`, found integer
107 = note: expected type `!`
108 found type `{integer}`
110 error[E0308]: mismatched types
111 --> $DIR/coerce-to-bang.rs:65:41
113 LL | let x: (usize, !, usize) = (return, 44, 66);
114 | ^^ expected `!`, found integer
116 = note: expected type `!`
117 found type `{integer}`
119 error[E0308]: mismatched types
120 --> $DIR/coerce-to-bang.rs:76:37
122 LL | let x: (usize, !, usize) = (22, 44, return);
123 | ^^ expected `!`, found integer
125 = note: expected type `!`
126 found type `{integer}`
128 error: aborting due to 10 previous errors
130 For more information about this error, try `rustc --explain E0308`.