3 ms·
> I'm going to try this in Rust. https://play.integer32.com/?gist=4c95f461e58727607c4b1c2c569af913&version=stable https://play.integer32.com/?gist=4c95f461e587
by Ygg2 9y ago
> I'm going to try this in Rust.
https://play.integer32.com/?gist=4c95f461e58727607c4b1c2c569af913&version=stable https://play.integer32.com/?gist=4c95f461e58727607c4b1c2c569...
error[E0369]: binary operation `+` cannot be applied to type `bool`
--> src/main.rs:5:13
|
5 | let x = true + true;
| ^^^^^^^^^^^
|
= note: an implementation of `std::ops::Add` might be missing for `bool`
- masklinn 9y ago> = note: an implementation of `std::ops::Add` might be missing for `bool` Incidentally you can not provide one, because implementing a trait on a type currently requires that either the trait or the type be local to the current crate: = note: the impl does not reference any types defined in this crate = note: define and implement a trait or new type instead