]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-11374.stderr
Rollup merge of #100953 - joshtriplett:write-docs, r=Mark-Simulacrum
[rust.git] / src / test / ui / issues / issue-11374.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-11374.rs:26:15
3    |
4 LL |     c.read_to(v);
5    |       ------- ^
6    |       |       |
7    |       |       expected `&mut [u8]`, found struct `Vec`
8    |       |       help: consider mutably borrowing here: `&mut v`
9    |       arguments to this function are incorrect
10    |
11    = note: expected mutable reference `&mut [u8]`
12                          found struct `Vec<_>`
13 note: associated function defined here
14   --> $DIR/issue-11374.rs:13:12
15    |
16 LL |     pub fn read_to(&mut self, vec: &mut [u8]) {
17    |            ^^^^^^^            --------------
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0308`.