fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0277]: cannot add `std::vec::Vec<B>` to `()` 2 --> $DIR/issue-2149.rs:8:33 3 | 4LL | for elt in self { r = r + f(*elt); } 5 | ^ no implementation for `() + std::vec::Vec<B>` 6 | 7 = help: the trait `std::ops::Add<std::vec::Vec<B>>` is not implemented for `()` 8 9error[E0599]: no method named `bind` found for type `[&str; 1]` in the current scope 10 --> $DIR/issue-2149.rs:13:12 11 | 12LL | ["hi"].bind(|x| [x] ); 13 | ^^^^ method not found in `[&str; 1]` 14 | 15 = help: items from traits can only be used if the trait is implemented and in scope 16 = note: the following trait defines an item `bind`, perhaps you need to implement it: 17 candidate #1: `VecMonad` 18 19error: aborting due to 2 previous errors 20 21Some errors have detailed explanations: E0277, E0599. 22For more information about an error, try `rustc --explain E0277`.