#![allow(missing_docs, clippy::must_use_candidate, clippy::needless_bool)]
use std::fmt;
use std::ops::Add;
use std::ops::Div;
use std::ops::Mul;
use std::ops::Sub;
pub fn a() {}
pub fn b() { a(); }
pub struct MyStruct {
pub n: i32,
}
impl MyStruct {
pub fn method(&self) -> &'static str { "result" }
}
pub fn lorem<T>(_: T)
where
T: Add + Div + Mul + Sub, {
}
pub struct Wrapper<T>(T);
impl<T> fmt::Display for Wrapper<Vec<T>>
where
T: fmt::Display,
{
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "[...]") }
}
pub fn c() -> bool {
if 3 > 2 {
true
} else {
false
}
}
pub fn some_function() {
let _ = [1, 2, 3];
let _ = [
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1,
];
let _ = 1_000_000
+ 1_000_000
+ 1_000_000
+ 1_000_000
+ 1_000_000
+ 1_000_000
+ 1_000_000
+ 1_000_000
+ 1_000_000;
#[rustfmt::skip]
let _ = 1_000_000 + 1_000_000 + 1_000_000 + 1_000_000 + 1_000_000 + 1_000_000 + 1_000_000 + 1_000_000 + 1_000_000;
}
fn _d() { let (_a, ..) = (1, 2, 3); }
pub fn add_one(x: i32) -> i32 { x + 1 }
pub const I: i32 = 0xabcd;
pub fn g() {
let _ = format!("{}{}{}{}{}{}{}{}", 1_000_000, 1_000_000, 1_000_000, 1_000_000, 1_000_000, 1_000_000, 1_000_000, 1_000_000);
}
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum Foo {}