summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/size_of_ref.stderr
blob: d4c13ac3290b6fc2a96b6079ce244cc70f78f3e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
error: argument to `std::mem::size_of_val()` is a reference to a reference
  --> $DIR/size_of_ref.rs:13:5
   |
LL |     size_of_val(&&x);
   |     ^^^^^^^^^^^^^^^^
   |
   = help: dereference the argument to `std::mem::size_of_val()` to get the size of the value instead of the size of the reference-type
   = note: `-D clippy::size-of-ref` implied by `-D warnings`

error: argument to `std::mem::size_of_val()` is a reference to a reference
  --> $DIR/size_of_ref.rs:14:5
   |
LL |     size_of_val(&y);
   |     ^^^^^^^^^^^^^^^
   |
   = help: dereference the argument to `std::mem::size_of_val()` to get the size of the value instead of the size of the reference-type

error: argument to `std::mem::size_of_val()` is a reference to a reference
  --> $DIR/size_of_ref.rs:25:9
   |
LL |         std::mem::size_of_val(&self) + (std::mem::size_of::<u8>() * self.data.capacity())
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: dereference the argument to `std::mem::size_of_val()` to get the size of the value instead of the size of the reference-type

error: aborting due to 3 previous errors