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