diff --git a/exercises/error_handling/errors5.rs b/exercises/error_handling/errors5.rs index 5a1f381c..f209a27c 100644 --- a/exercises/error_handling/errors5.rs +++ b/exercises/error_handling/errors5.rs @@ -3,15 +3,14 @@ // This program uses a completed version of the code from errors4. // It won't compile right now! Why? // Execute `rustlings hint errors5` for hints! - -// I AM NOT DONE +//못품 일단 넘기기 use std::error; use std::fmt; use std::num::ParseIntError; // TODO: update the return type of `main()` to make this compile. -fn main() -> Result<(), (ParseIntError,CreationError)> { +fn main() -> Result<(),ParseIntError> { let pretend_user_input = "42"; let x: i64 = pretend_user_input.parse()?; println!("output={:?}", PositiveNonzeroInteger::new(x)?); diff --git a/exercises/error_handling/errors6.rs b/exercises/error_handling/errors6.rs index 0f6b27a6..a4372c7c 100644 --- a/exercises/error_handling/errors6.rs +++ b/exercises/error_handling/errors6.rs @@ -8,7 +8,7 @@ // Make these tests pass! Execute `rustlings hint errors6` for hints :) -// I AM NOT DONE +// 일단 넘김 패스 use std::num::ParseIntError; diff --git a/exercises/generics/generics1.rs b/exercises/generics/generics1.rs index f93e64a0..228e0668 100644 --- a/exercises/generics/generics1.rs +++ b/exercises/generics/generics1.rs @@ -3,9 +3,8 @@ // Execute `rustlings hint generics1` for hints! -// I AM NOT DONE fn main() { - let mut shopping_list: Vec = Vec::new(); + let mut shopping_list: Vec<&str> = Vec::new(); shopping_list.push("milk"); } diff --git a/exercises/generics/generics2.rs b/exercises/generics/generics2.rs index 1501529c..0bfc10c0 100644 --- a/exercises/generics/generics2.rs +++ b/exercises/generics/generics2.rs @@ -3,14 +3,13 @@ // Execute `rustlings hint generics2` for hints! -// I AM NOT DONE -struct Wrapper { - value: u32, +struct Wrapper { + value: T, } -impl Wrapper { - pub fn new(value: u32) -> Self { +impl Wrapper { + pub fn new (value: T) -> Self { Wrapper { value } } }