about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/eta_nostd.fixed
blob: 134af34a826a41a0194c08b9ec0cd9a098c0242c (plain)
1
2
3
4
5
6
7
8
9
10
11
#![warn(clippy::redundant_closure)]
#![no_std]

extern crate alloc;
use alloc::vec;
use alloc::vec::Vec;

fn issue_13895() {
    let _: Option<Vec<u8>> = true.then(alloc::vec::Vec::new);
    //~^ redundant_closure
}