]> git.lizzy.rs Git - rust.git/blob - tests/ui/size_of_ref.stderr
Suggest using Path for comparing extensions
[rust.git] / tests / ui / size_of_ref.stderr
1 error: argument to `std::mem::size_of_val()` is a reference to a reference
2   --> $DIR/size_of_ref.rs:13:5
3    |
4 LL |     size_of_val(&&x);
5    |     ^^^^^^^^^^^^^^^^
6    |
7    = 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
8    = note: `-D clippy::size-of-ref` implied by `-D warnings`
9
10 error: argument to `std::mem::size_of_val()` is a reference to a reference
11   --> $DIR/size_of_ref.rs:14:5
12    |
13 LL |     size_of_val(&y);
14    |     ^^^^^^^^^^^^^^^
15    |
16    = 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
17
18 error: argument to `std::mem::size_of_val()` is a reference to a reference
19   --> $DIR/size_of_ref.rs:25:9
20    |
21 LL |         std::mem::size_of_val(&self) + (std::mem::size_of::<u8>() * self.data.capacity())
22    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23    |
24    = 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
25
26 error: aborting due to 3 previous errors
27