mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +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` ```
32 lines
792 B
Plaintext
32 lines
792 B
Plaintext
error[E0428]: the name `m` is defined multiple times
|
|
--> $DIR/effective_visibilities_invariants.rs:7:1
|
|
|
|
|
LL | pub mod m {}
|
|
| --------- previous definition of the module `m` here
|
|
LL |
|
|
LL | pub mod m {
|
|
| ^^^^^^^^^ `m` redefined here
|
|
|
|
|
= note: `m` must be defined only once in the type namespace of this module
|
|
|
|
error: module has missing stability attribute
|
|
--> $DIR/effective_visibilities_invariants.rs:3:1
|
|
|
|
|
LL | / #![feature(staged_api)]
|
|
LL | |
|
|
LL | | pub mod m {}
|
|
... |
|
|
LL | |
|
|
LL | | fn main() {}
|
|
| |____________^
|
|
|
|
error: module has missing stability attribute
|
|
--> $DIR/effective_visibilities_invariants.rs:5:1
|
|
|
|
|
LL | pub mod m {}
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0428`.
|