mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 18:40:57 +03:00
12 lines
216 B
Rust
12 lines
216 B
Rust
#![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
|
|
}
|