]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-11374.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-11374.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-11374.rs:36:15
3    |
4 LL |     c.read_to(v); //~ ERROR E0308
5    |               ^
6    |               |
7    |               expected &mut [u8], found struct `std::vec::Vec`
8    |               help: consider mutably borrowing here: `&mut v`
9    |
10    = note: expected type `&mut [u8]`
11               found type `std::vec::Vec<_>`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0308`.