|
| 1 | +error: map with zero-sized value type |
| 2 | + --> $DIR/zero_sized_btreemap_values.rs:5:28 |
| 3 | + | |
| 4 | +LL | const CONST_NOT_OK: Option<BTreeMap<String, ()>> = None; |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = note: `-D clippy::zero-sized-map-values` implied by `-D warnings` |
| 8 | + = help: consider using a set instead |
| 9 | + |
| 10 | +error: map with zero-sized value type |
| 11 | + --> $DIR/zero_sized_btreemap_values.rs:8:30 |
| 12 | + | |
| 13 | +LL | static STATIC_NOT_OK: Option<BTreeMap<String, ()>> = None; |
| 14 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 15 | + | |
| 16 | + = help: consider using a set instead |
| 17 | + |
| 18 | +error: map with zero-sized value type |
| 19 | + --> $DIR/zero_sized_btreemap_values.rs:11:17 |
| 20 | + | |
| 21 | +LL | type NotOkMap = BTreeMap<String, ()>; |
| 22 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 23 | + | |
| 24 | + = help: consider using a set instead |
| 25 | + |
| 26 | +error: map with zero-sized value type |
| 27 | + --> $DIR/zero_sized_btreemap_values.rs:15:11 |
| 28 | + | |
| 29 | +LL | NotOk(BTreeMap<String, ()>), |
| 30 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 31 | + | |
| 32 | + = help: consider using a set instead |
| 33 | + |
| 34 | +error: map with zero-sized value type |
| 35 | + --> $DIR/zero_sized_btreemap_values.rs:20:13 |
| 36 | + | |
| 37 | +LL | not_ok: BTreeMap<String, ()>, |
| 38 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 39 | + | |
| 40 | + = help: consider using a set instead |
| 41 | + |
| 42 | +error: map with zero-sized value type |
| 43 | + --> $DIR/zero_sized_btreemap_values.rs:22:22 |
| 44 | + | |
| 45 | +LL | also_not_ok: Vec<BTreeMap<usize, ()>>, |
| 46 | + | ^^^^^^^^^^^^^^^^^^^ |
| 47 | + | |
| 48 | + = help: consider using a set instead |
| 49 | + |
| 50 | +error: map with zero-sized value type |
| 51 | + --> $DIR/zero_sized_btreemap_values.rs:30:30 |
| 52 | + | |
| 53 | +LL | fn weird_map(&self, map: BTreeMap<usize, ()>); |
| 54 | + | ^^^^^^^^^^^^^^^^^^^ |
| 55 | + | |
| 56 | + = help: consider using a set instead |
| 57 | + |
| 58 | +error: map with zero-sized value type |
| 59 | + --> $DIR/zero_sized_btreemap_values.rs:38:25 |
| 60 | + | |
| 61 | +LL | fn not_ok(&self) -> BTreeMap<String, ()> { |
| 62 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 63 | + | |
| 64 | + = help: consider using a set instead |
| 65 | + |
| 66 | +error: map with zero-sized value type |
| 67 | + --> $DIR/zero_sized_btreemap_values.rs:55:14 |
| 68 | + | |
| 69 | +LL | fn test(map: BTreeMap<String, ()>, key: &str) -> BTreeMap<String, ()> { |
| 70 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 71 | + | |
| 72 | + = help: consider using a set instead |
| 73 | + |
| 74 | +error: map with zero-sized value type |
| 75 | + --> $DIR/zero_sized_btreemap_values.rs:55:50 |
| 76 | + | |
| 77 | +LL | fn test(map: BTreeMap<String, ()>, key: &str) -> BTreeMap<String, ()> { |
| 78 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 79 | + | |
| 80 | + = help: consider using a set instead |
| 81 | + |
| 82 | +error: map with zero-sized value type |
| 83 | + --> $DIR/zero_sized_btreemap_values.rs:64:35 |
| 84 | + | |
| 85 | +LL | let _: BTreeMap<String, ()> = BTreeMap::new(); |
| 86 | + | ^^^^^^^^^^^^^ |
| 87 | + | |
| 88 | + = help: consider using a set instead |
| 89 | + |
| 90 | +error: map with zero-sized value type |
| 91 | + --> $DIR/zero_sized_btreemap_values.rs:64:12 |
| 92 | + | |
| 93 | +LL | let _: BTreeMap<String, ()> = BTreeMap::new(); |
| 94 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 95 | + | |
| 96 | + = help: consider using a set instead |
| 97 | + |
| 98 | +error: map with zero-sized value type |
| 99 | + --> $DIR/zero_sized_btreemap_values.rs:67:12 |
| 100 | + | |
| 101 | +LL | let _: BTreeMap<_, _> = std::iter::empty::<(String, ())>().collect(); |
| 102 | + | ^^^^^^^^^^^^^^ |
| 103 | + | |
| 104 | + = help: consider using a set instead |
| 105 | + |
| 106 | +error: aborting due to 13 previous errors |
| 107 | + |
0 commit comments