os-rust/src/test/ui/coercion/coerce-to-bang.stderr

94 lines
2.5 KiB
Text
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0308]: mismatched types
--> $DIR/coerce-to-bang.rs:4:17
2018-08-08 14:28:26 +02:00
|
LL | foo(return, 22, 44);
| ^^ expected `!`, found integer
2018-08-08 14:28:26 +02:00
|
= note: expected type `!`
found type `{integer}`
error[E0308]: mismatched types
--> $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);
| ^^ expected `!`, found integer
2018-08-08 14:28:26 +02:00
|
= note: expected type `!`
found type `{integer}`
error[E0308]: mismatched types
--> $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.
| ^ expected `!`, found integer
2018-08-08 14:28:26 +02:00
|
= note: expected type `!`
found type `{integer}`
error[E0308]: mismatched types
--> $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);
| ^ expected `!`, found integer
2018-08-08 14:28:26 +02:00
|
= note: expected type `!`
found type `{integer}`
error[E0308]: mismatched types
--> $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);
| ^ expected `!`, found integer
2018-08-08 14:28:26 +02:00
|
= note: expected type `!`
found type `{integer}`
error[E0308]: mismatched types
--> $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];
| ^^^^^^^^^^^^ expected `!`, found integer
2018-08-08 14:28:26 +02:00
|
= note: expected array `[!; 2]`
found array `[{integer}; 2]`
2018-08-08 14:28:26 +02:00
error[E0308]: mismatched types
--> $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];
| ^^ expected `!`, found integer
2018-08-08 14:28:26 +02:00
|
= note: expected type `!`
found type `{integer}`
error[E0308]: mismatched types
--> $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);
| ^^ expected `!`, found integer
2018-08-08 14:28:26 +02:00
|
= note: expected type `!`
found type `{integer}`
error[E0308]: mismatched types
--> $DIR/coerce-to-bang.rs:63:41
2018-08-08 14:28:26 +02:00
|
LL | let x: (usize, !, usize) = (return, 44, 66);
| ^^ expected `!`, found integer
2018-08-08 14:28:26 +02:00
|
= note: expected type `!`
found type `{integer}`
error[E0308]: mismatched types
--> $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);
| ^^ 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`.