mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
43 lines
469 B
Rust
43 lines
469 B
Rust
#![allow(unused)]
|
|
#![warn(clippy::empty_docs)]
|
|
|
|
/// this is a struct
|
|
struct Bananas {
|
|
/// count
|
|
count: usize,
|
|
}
|
|
|
|
///
|
|
enum Warn {
|
|
///
|
|
A,
|
|
///
|
|
B,
|
|
}
|
|
|
|
enum WarnForB {
|
|
/// it's ok
|
|
A,
|
|
///
|
|
B,
|
|
}
|
|
|
|
#[doc = ""]
|
|
#[doc = ""]
|
|
fn warn_about_this() {}
|
|
|
|
#[doc = "a fine function"]
|
|
fn this_is_fine() {}
|
|
|
|
fn warn_about_this_as_well() {
|
|
//!
|
|
}
|
|
|
|
fn this_is_ok() {
|
|
//!
|
|
//! inside the function
|
|
}
|
|
|
|
fn warn() {
|
|
/*! inside the function */
|
|
}
|