Skip to content

List of Rust Kata to Update

kazk edited this page Oct 22, 2021 · 60 revisions

List of Rust kata that needs to be updated. Note that the reason to update is not limited to the runner change. Any content issue that should be addressed can be listed here.

Rust 2021 Edition

Rust 1.56 (edition = "2021") will be added soon. This section lists the incompatible kata that was found during testing. Most of these can be updated to prepare for the update.

format argument must be a string literal

Basically, assert!(x, format!("{} {} {}", a, b, c)); should be assert!(x, "{} {} {}", a, b, c);.

  1. Bloxorz Solver
  2. Braking well
  3. Circle area inside square
  4. Euler's method for a first-order ODE
  5. Floating-point Approximation (I)
  6. Floating-point Approximation (III)
  7. Going to zero or to infinity?
  8. Magnet particules in boxes
  9. Molecule to atoms
  10. Positions Average
  11. Probabilities for Sums in Rolling Cubic Dice
  12. Rainfall
  13. Robinson Crusoe
  14. Simpson's Rule - Approximate Integration
  15. Symbolic differentiation of prefix expressions
  16. Telephone Pictionary
  17. Transforming Maze Solver
  18. Which x for that sum?

trait objects must include the dyn keyword

bare_trait_objects

pub type Func<A, B> = Box<Fn(A) -> B>;
                          ^^^^^^^^^^
pub type Func<A, B> = Box<dyn Fn(A) -> B>;
                          +++
help: add `dyn` keyword before this trait
  1. Algebraic Isomorphism

mismatched types

Wait for 1.56. See IntoIterator for arrays

  --> src/lib.rs:14:11
  |
4 |       for &(string, reverse) in test_cases.into_iter() {
  |           ^^^^^^^^^^^^^^^^^^    ---------------------- this expression has type `(&str, &str)`
  |           |
  |           expected tuple, found reference
  |
  = note:  expected tuple `(&str, &str)`
          found reference `&_`
  1. Reversed Words

timed out

  1. Some Egyptian fractions

Missing Random Tests

  1. Help your granny!
  2. Moves in squared strings (IV)
  3. My smallest code interpreter (aka Brainf**k)
  4. Valid Braces
  5. Even or Odd
  6. Remove String Spaces
  7. Square(n) Sum
  8. Counting sheep...
  9. Count of positives / sum of negatives
  10. Count the Monkeys!
  11. Jenny's secret message
  12. Reversed Words
  13. Beginner - Reduce but Grow
  14. DNA to RNA Conversion
  15. MakeUpperCase
  16. Are You Playing Banjo?
  17. Holiday VIII - Duty Free
  18. Thinkful - Logic Drills: Traffic light
  19. Descending Order
  20. Complementary DNA
  21. Find the divisors!
  22. Don't give me five!
  23. Form The Minimum
  24. Two Oldest Ages
  25. Thinkful - String Drills: Repeater
  26. Multiples of 3 or 5
  27. Duplicate Encoder
  28. Bit Counting
  29. Create Phone Number
  30. Valid Braces
  31. Highest Scoring Word
  32. Good vs Evil
  33. Shortest Word
  34. Directions Reduction

Clone this wiki locally