mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 08:30:45 +00:00
8339474a7c
``` 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` ```
54 lines
1.7 KiB
Text
54 lines
1.7 KiB
Text
error: found an empty line after an outer attribute. Perhaps you forgot to add a `!` to make it an inner attribute?
|
|
--> tests/ui/empty_line_after_outer_attribute.rs:11:1
|
|
|
|
|
LL | / #[crate_type = "lib"]
|
|
LL | |
|
|
LL | | /// some comment
|
|
LL | | fn with_one_newline_and_comment() { assert!(true) }
|
|
| |_
|
|
|
|
|
= note: `-D clippy::empty-line-after-outer-attr` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::empty_line_after_outer_attr)]`
|
|
|
|
error: found an empty line after an outer attribute. Perhaps you forgot to add a `!` to make it an inner attribute?
|
|
--> tests/ui/empty_line_after_outer_attribute.rs:23:1
|
|
|
|
|
LL | / #[crate_type = "lib"]
|
|
LL | |
|
|
LL | | fn with_one_newline() { assert!(true) }
|
|
| |_
|
|
|
|
error: found an empty line after an outer attribute. Perhaps you forgot to add a `!` to make it an inner attribute?
|
|
--> tests/ui/empty_line_after_outer_attribute.rs:28:1
|
|
|
|
|
LL | / #[crate_type = "lib"]
|
|
... |
|
|
LL | | fn with_two_newlines() { assert!(true) }
|
|
| |_
|
|
|
|
error: found an empty line after an outer attribute. Perhaps you forgot to add a `!` to make it an inner attribute?
|
|
--> tests/ui/empty_line_after_outer_attribute.rs:35:1
|
|
|
|
|
LL | / #[crate_type = "lib"]
|
|
LL | |
|
|
LL | | enum Baz {
|
|
| |_
|
|
|
|
error: found an empty line after an outer attribute. Perhaps you forgot to add a `!` to make it an inner attribute?
|
|
--> tests/ui/empty_line_after_outer_attribute.rs:43:1
|
|
|
|
|
LL | / #[crate_type = "lib"]
|
|
LL | |
|
|
LL | | struct Foo {
|
|
| |_
|
|
|
|
error: found an empty line after an outer attribute. Perhaps you forgot to add a `!` to make it an inner attribute?
|
|
--> tests/ui/empty_line_after_outer_attribute.rs:51:1
|
|
|
|
|
LL | / #[crate_type = "lib"]
|
|
LL | |
|
|
LL | | mod foo {
|
|
| |_
|
|
|
|
error: aborting due to 6 previous errors
|
|
|