#![allow(unused)] #![warn(clippy::let_underscore_untyped)] use std::future::Future; use std::{boxed::Box, fmt::Display}; fn a() -> u32 { 1 } fn b(x: T) -> T { x } fn c() -> impl Display { 1 } fn d(x: &u32) -> &u32 { x } fn e() -> Result { Ok(1) } fn f() -> Box { Box::new(1) } fn main() { let _ = a(); let _ = b(1); let _ = c(); let _ = d(&1); let _ = e(); let _ = f(); _ = a(); _ = b(1); _ = c(); _ = d(&1); _ = e(); _ = f(); let _: u32 = a(); let _: u32 = b(1); let _: &u32 = d(&1); let _: Result<_, _> = e(); let _: Box<_> = f(); #[allow(clippy::let_underscore_untyped)] let _ = a(); }