fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
683 B23 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-11374.rs:26:15
3   |
4LL |     c.read_to(v);
5   |       ------- ^ expected `&mut [u8]`, found `Vec<_>`
6   |       |
7   |       arguments to this method are incorrect
8   |
9   = note: expected mutable reference `&mut [u8]`
10                         found struct `Vec<_>`
11note: method defined here
12  --> $DIR/issue-11374.rs:13:12
13   |
14LL |     pub fn read_to(&mut self, vec: &mut [u8]) {
15   |            ^^^^^^^            --------------
16help: consider mutably borrowing here
17   |
18LL |     c.read_to(&mut v);
19   |               ++++
20
21error: aborting due to previous error
22
23For more information about this error, try `rustc --explain E0308`.