1 error[E0308]: mismatched types
2 --> $DIR/issue-11374.rs:26:15
7 | | expected `&mut [u8]`, found struct `Vec`
8 | | help: consider mutably borrowing here: `&mut v`
9 | arguments to this function are incorrect
11 = note: expected mutable reference `&mut [u8]`
13 note: associated function defined here
14 --> $DIR/issue-11374.rs:13:12
16 LL | pub fn read_to(&mut self, vec: &mut [u8]) {
17 | ^^^^^^^ --------------
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0308`.