about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/eta_nostd.stderr
blob: 4dfef43efa4768c9214e6e7d420dede49d36871c (plain)
1
2
3
4
5
6
7
8
9
10
11
error: redundant closure
  --> tests/ui/eta_nostd.rs:9:40
   |
LL |     let _: Option<Vec<u8>> = true.then(|| vec![]);
   |                                        ^^^^^^^^^ help: replace the closure with `Vec::new`: `alloc::vec::Vec::new`
   |
   = note: `-D clippy::redundant-closure` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::redundant_closure)]`

error: aborting due to 1 previous error