mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
cc9631a371
``` error[E0308]: `match` arms have incompatible types --> tests/ui/codemap_tests/huge_multispan_highlight.rs:98:18 | 6 | let _ = match true { | ---------- `match` arms have incompatible types 7 | true => ( | _________________- 8 | | // last line shown in multispan header ... | 96 | | 97 | | ), | |_________- this is found to be of type `()` 98 | false => " | __________________^ ... | 119 | | 120 | | ", | |_________^ expected `()`, found `&str` error[E0308]: `match` arms have incompatible types --> tests/ui/codemap_tests/huge_multispan_highlight.rs:215:18 | 122 | let _ = match true { | ---------- `match` arms have incompatible types 123 | true => ( | _________________- 124 | | 125 | | 1 // last line shown in multispan header ... | 213 | | 214 | | ), | |_________- this is found to be of type `{integer}` 215 | false => " | __________________^ 216 | | 217 | | 218 | | 1 last line shown in multispan ... | 237 | | 238 | | ", | |_________^ expected integer, found `&str` ```
218 lines
6.2 KiB
Plaintext
218 lines
6.2 KiB
Plaintext
error: suffixes on a tuple index are invalid
|
|
--> $DIR/offset-of-tuple.rs:19:35
|
|
|
|
|
LL | builtin # offset_of((u8, u8), 1_u8);
|
|
| ^^^^ invalid suffix `u8`
|
|
|
|
error: leading `+` is not supported
|
|
--> $DIR/offset-of-tuple.rs:23:37
|
|
|
|
|
LL | { builtin # offset_of((u8, u8), +1) };
|
|
| ^ unexpected `+`
|
|
|
|
|
help: try removing the `+`
|
|
|
|
|
LL - { builtin # offset_of((u8, u8), +1) };
|
|
LL + { builtin # offset_of((u8, u8), 1) };
|
|
|
|
|
|
|
error: offset_of expects dot-separated field and variant names
|
|
--> $DIR/offset-of-tuple.rs:24:38
|
|
|
|
|
LL | { builtin # offset_of((u8, u8), 1.) };
|
|
| ^
|
|
|
|
error: unexpected token: `)`
|
|
--> $DIR/offset-of-tuple.rs:25:40
|
|
|
|
|
LL | { builtin # offset_of((u8, u8), 1 .) };
|
|
| ^
|
|
|
|
error: unexpected token: `)`
|
|
--> $DIR/offset-of-tuple.rs:47:45
|
|
|
|
|
LL | { builtin # offset_of(ComplexTup, 0.0.1.) };
|
|
| ^
|
|
|
|
error: unexpected token: `)`
|
|
--> $DIR/offset-of-tuple.rs:48:46
|
|
|
|
|
LL | { builtin # offset_of(ComplexTup, 0 .0.1.) };
|
|
| ^
|
|
|
|
error: unexpected token: `)`
|
|
--> $DIR/offset-of-tuple.rs:49:47
|
|
|
|
|
LL | { builtin # offset_of(ComplexTup, 0 . 0.1.) };
|
|
| ^
|
|
|
|
error: unexpected token: `)`
|
|
--> $DIR/offset-of-tuple.rs:50:46
|
|
|
|
|
LL | { builtin # offset_of(ComplexTup, 0. 0.1.) };
|
|
| ^
|
|
|
|
error: unexpected token: `)`
|
|
--> $DIR/offset-of-tuple.rs:51:46
|
|
|
|
|
LL | { builtin # offset_of(ComplexTup, 0.0 .1.) };
|
|
| ^
|
|
|
|
error: unexpected token: `)`
|
|
--> $DIR/offset-of-tuple.rs:52:47
|
|
|
|
|
LL | { builtin # offset_of(ComplexTup, 0.0 . 1.) };
|
|
| ^
|
|
|
|
error: unexpected token: `)`
|
|
--> $DIR/offset-of-tuple.rs:53:46
|
|
|
|
|
LL | { builtin # offset_of(ComplexTup, 0.0. 1.) };
|
|
| ^
|
|
|
|
error: suffixes on a tuple index are invalid
|
|
--> $DIR/offset-of-tuple.rs:10:26
|
|
|
|
|
LL | offset_of!((u8, u8), 1_u8);
|
|
| ^^^^ invalid suffix `u8`
|
|
|
|
error: no rules expected the token `+`
|
|
--> $DIR/offset-of-tuple.rs:12:26
|
|
|
|
|
LL | offset_of!((u8, u8), +1);
|
|
| ^ no rules expected this token in macro call
|
|
|
|
|
note: while trying to match meta-variable `$fields:expr`
|
|
--> $SRC_DIR/core/src/mem/mod.rs:LL:COL
|
|
|
|
error: offset_of expects dot-separated field and variant names
|
|
--> $DIR/offset-of-tuple.rs:13:26
|
|
|
|
|
LL | offset_of!((u8, u8), -1);
|
|
| ^^
|
|
|
|
error: offset_of expects dot-separated field and variant names
|
|
--> $DIR/offset-of-tuple.rs:14:27
|
|
|
|
|
LL | offset_of!((u8, u8), 1.);
|
|
| ^
|
|
|
|
error: unexpected token: `)`
|
|
--> $DIR/offset-of-tuple.rs:15:29
|
|
|
|
|
LL | offset_of!((u8, u8), 1 .);
|
|
| ^
|
|
|
|
error: unexpected token: `)`
|
|
--> $DIR/offset-of-tuple.rs:36:34
|
|
|
|
|
LL | offset_of!(ComplexTup, 0.0.1.);
|
|
| ^
|
|
|
|
error: unexpected token: `)`
|
|
--> $DIR/offset-of-tuple.rs:37:35
|
|
|
|
|
LL | offset_of!(ComplexTup, 0 .0.1.);
|
|
| ^
|
|
|
|
error: unexpected token: `)`
|
|
--> $DIR/offset-of-tuple.rs:38:36
|
|
|
|
|
LL | offset_of!(ComplexTup, 0 . 0.1.);
|
|
| ^
|
|
|
|
error: unexpected token: `)`
|
|
--> $DIR/offset-of-tuple.rs:39:35
|
|
|
|
|
LL | offset_of!(ComplexTup, 0. 0.1.);
|
|
| ^
|
|
|
|
error: unexpected token: `)`
|
|
--> $DIR/offset-of-tuple.rs:40:35
|
|
|
|
|
LL | offset_of!(ComplexTup, 0.0 .1.);
|
|
| ^
|
|
|
|
error: unexpected token: `)`
|
|
--> $DIR/offset-of-tuple.rs:41:36
|
|
|
|
|
LL | offset_of!(ComplexTup, 0.0 . 1.);
|
|
| ^
|
|
|
|
error: unexpected token: `)`
|
|
--> $DIR/offset-of-tuple.rs:42:35
|
|
|
|
|
LL | offset_of!(ComplexTup, 0.0. 1.);
|
|
| ^
|
|
|
|
error[E0609]: no field `_0` on type `(u8, u8)`
|
|
--> $DIR/offset-of-tuple.rs:7:26
|
|
|
|
|
LL | offset_of!((u8, u8), _0);
|
|
| ^^
|
|
|
|
error[E0609]: no field `01` on type `(u8, u8)`
|
|
--> $DIR/offset-of-tuple.rs:8:26
|
|
|
|
|
LL | offset_of!((u8, u8), 01);
|
|
| ^^
|
|
|
|
error[E0609]: no field `1e2` on type `(u8, u8)`
|
|
--> $DIR/offset-of-tuple.rs:9:26
|
|
|
|
|
LL | offset_of!((u8, u8), 1e2);
|
|
| ^^^
|
|
|
|
error[E0609]: no field `1_` on type `(u8, u8)`
|
|
--> $DIR/offset-of-tuple.rs:10:26
|
|
|
|
|
LL | offset_of!((u8, u8), 1_u8);
|
|
| ^^^^
|
|
|
|
error[E0609]: no field `1e2` on type `(u8, u8)`
|
|
--> $DIR/offset-of-tuple.rs:16:35
|
|
|
|
|
LL | builtin # offset_of((u8, u8), 1e2);
|
|
| ^^^
|
|
|
|
error[E0609]: no field `_0` on type `(u8, u8)`
|
|
--> $DIR/offset-of-tuple.rs:17:35
|
|
|
|
|
LL | builtin # offset_of((u8, u8), _0);
|
|
| ^^
|
|
|
|
error[E0609]: no field `01` on type `(u8, u8)`
|
|
--> $DIR/offset-of-tuple.rs:18:35
|
|
|
|
|
LL | builtin # offset_of((u8, u8), 01);
|
|
| ^^
|
|
|
|
error[E0609]: no field `1_` on type `(u8, u8)`
|
|
--> $DIR/offset-of-tuple.rs:19:35
|
|
|
|
|
LL | builtin # offset_of((u8, u8), 1_u8);
|
|
| ^^^^
|
|
|
|
error[E0609]: no field `2` on type `(u8, u16)`
|
|
--> $DIR/offset-of-tuple.rs:31:47
|
|
|
|
|
LL | offset_of!(((u8, u16), (u32, u16, u8)), 0.2);
|
|
| _____------------------------------------------^-
|
|
| | |
|
|
| | in this macro invocation
|
|
LL | | offset_of!(((u8, u16), (u32, u16, u8)), 1.2);
|
|
LL | | offset_of!(((u8, u16), (u32, u16, u8)), 1.2.0);
|
|
... |
|
|
|
|
|
= note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error[E0609]: no field `0` on type `u8`
|
|
--> $DIR/offset-of-tuple.rs:33:49
|
|
|
|
|
LL | offset_of!(((u8, u16), (u32, u16, u8)), 1.2.0);
|
|
| ^
|
|
|
|
error: aborting due to 33 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0609`.
|