1
0
Fork 0
mirror of https://github.com/notohh/rustlings.git synced 2025-07-23 06:00:05 -04:00

Add errors to exercises that compile without user changes

This commit is contained in:
Yvan Sraka 2019-04-22 00:09:30 +02:00
commit a71bc62c29
No known key found for this signature in database
GPG key ID: 60E5D1A0EF691DE6
2 changed files with 8 additions and 2 deletions
exercises/move_semantics

View file

@ -16,7 +16,8 @@ fn main() {
}
fn fill_vec(vec: Vec<i32>) -> Vec<i32> {
// `fill_vec()` no longer take `vec: Vec<i32>` as argument
fn fill_vec() -> Vec<i32> {
let mut vec = vec;
vec.push(22);