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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

96 lines
2.6 KiB
Plaintext
Raw Normal View History

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