#Rusty help por favor
10 messages · Page 1 of 1 (latest)
It says that input in the while loop is considered a string
setting input to something like 3 makes it work
ok so what is the exact error message
error[E0277]: can't compare {integer} with String
--> src\main.rs:15:13
|
15 | while i < input {
| ^ no implementation for {integer} < String and {integer} > String
|
= help: the trait PartialOrd<String> is not implemented for {integer}
= help: the following other types implement trait PartialOrd<Rhs>:
so uhh, it seems like your conversion of string to integer is commented out
That’s because the loop is comparing against input not the converted intInput