2018-08-08 14:28:26 +02:00
|
|
|
error[E0308]: mismatched types
|
2019-10-13 03:17:00 +02:00
|
|
|
--> $DIR/coerce-to-bang.rs:4:17
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | foo(return, 22, 44);
|
2019-11-15 09:37:01 -08:00
|
|
|
| ^^ expected `!`, found integer
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= note: expected type `!`
|
|
|
|
found type `{integer}`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2019-10-13 03:17:00 +02:00
|
|
|
--> $DIR/coerce-to-bang.rs:16:13
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | foo(22, 44, return);
|
2019-11-15 09:37:01 -08:00
|
|
|
| ^^ expected `!`, found integer
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= note: expected type `!`
|
|
|
|
found type `{integer}`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2019-10-13 03:17:00 +02:00
|
|
|
--> $DIR/coerce-to-bang.rs:24:12
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | foo(a, b, c); // ... and hence a reference to `a` is expected to diverge.
|
2019-11-15 09:37:01 -08:00
|
|
|
| ^ expected `!`, found integer
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= note: expected type `!`
|
|
|
|
found type `{integer}`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2019-10-13 03:17:00 +02:00
|
|
|
--> $DIR/coerce-to-bang.rs:34:12
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | foo(a, b, c);
|
2019-11-15 09:37:01 -08:00
|
|
|
| ^ expected `!`, found integer
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= note: expected type `!`
|
|
|
|
found type `{integer}`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2019-10-13 03:17:00 +02:00
|
|
|
--> $DIR/coerce-to-bang.rs:43:12
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | foo(a, b, c);
|
2019-11-15 09:37:01 -08:00
|
|
|
| ^ expected `!`, found integer
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= note: expected type `!`
|
|
|
|
found type `{integer}`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2019-10-13 03:17:00 +02:00
|
|
|
--> $DIR/coerce-to-bang.rs:48:21
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let x: [!; 2] = [return, 22];
|
2019-11-15 09:37:01 -08:00
|
|
|
| ^^^^^^^^^^^^ expected `!`, found integer
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-11-13 14:16:56 -08:00
|
|
|
= note: expected array `[!; 2]`
|
|
|
|
found array `[{integer}; 2]`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2019-10-13 03:17:00 +02:00
|
|
|
--> $DIR/coerce-to-bang.rs:53:22
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let x: [!; 2] = [22, return];
|
2019-11-15 09:37:01 -08:00
|
|
|
| ^^ expected `!`, found integer
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= note: expected type `!`
|
|
|
|
found type `{integer}`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2019-10-13 03:17:00 +02:00
|
|
|
--> $DIR/coerce-to-bang.rs:58:37
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let x: (usize, !, usize) = (22, 44, 66);
|
2019-11-15 09:37:01 -08:00
|
|
|
| ^^ expected `!`, found integer
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= note: expected type `!`
|
|
|
|
found type `{integer}`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2019-10-13 03:17:00 +02:00
|
|
|
--> $DIR/coerce-to-bang.rs:63:41
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | let x: (usize, !, usize) = (return, 44, 66);
|
2019-11-15 09:37:01 -08:00
|
|
|
| ^^ expected `!`, found integer
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= note: expected type `!`
|
|
|
|
found type `{integer}`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2019-10-13 03:17:00 +02:00
|
|
|
--> $DIR/coerce-to-bang.rs:74:37
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let x: (usize, !, usize) = (22, 44, return);
|
2019-11-15 09:37:01 -08:00
|
|
|
| ^^ expected `!`, found integer
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= note: expected type `!`
|
|
|
|
found type `{integer}`
|
|
|
|
|
|
|
|
error: aborting due to 10 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|