mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-28 07:30:57 +00:00
Run cargo dev fmt
This commit is contained in:
parent
bc97f5d215
commit
a8d47b4b78
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ declare_clippy_lint! {
|
|||
/// if the `never_type` is enabled.
|
||||
///
|
||||
/// **Why is this bad?** If you want to introduce a type which
|
||||
/// can't be instantiated, you should use `!` (the primitive type never),
|
||||
/// can't be instantiated, you should use `!` (the primitive type "never"),
|
||||
/// or a wrapper around it, because `!` has more extensive
|
||||
/// compiler support (type inference, etc...) and wrappers
|
||||
/// around it are the conventional way to define an uninhabited type.
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
// `never_type` is not enabled; this test has no stderr file
|
||||
enum Empty {}
|
||||
|
||||
fn main() {}
|
||||
fn main() {}
|
||||
|
|
Loading…
Reference in a new issue