#![warn(clippy::redundant_closure)] #![no_std] extern crate alloc; use alloc::vec; use alloc::vec::Vec; fn issue_13895() { let _: Option> = true.then(alloc::vec::Vec::new); //~^ redundant_closure }