]> git.proxmox.com Git - rustc.git/blame - src/test/ui/never_type/issue-2149.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / never_type / issue-2149.stderr
CommitLineData
1b1a35ee 1error[E0277]: cannot add `Vec<B>` to `()`
0731742a 2 --> $DIR/issue-2149.rs:8:33
8faf50e0
XL
3 |
4LL | for elt in self { r = r + f(*elt); }
1b1a35ee 5 | ^ no implementation for `() + Vec<B>`
8faf50e0 6 |
1b1a35ee 7 = help: the trait `Add<Vec<B>>` is not implemented for `()`
8faf50e0 8
dfeec247 9error[E0599]: no method named `bind` found for array `[&str; 1]` in the current scope
0731742a 10 --> $DIR/issue-2149.rs:13:12
8faf50e0
XL
11 |
12LL | ["hi"].bind(|x| [x] );
e1599b0c 13 | ^^^^ method not found in `[&str; 1]`
8faf50e0
XL
14 |
15 = help: items from traits can only be used if the trait is implemented and in scope
74b04a01
XL
16note: `VecMonad` defines an item `bind`, perhaps you need to implement it
17 --> $DIR/issue-2149.rs:1:1
18 |
19LL | trait VecMonad<A> {
20 | ^^^^^^^^^^^^^^^^^
8faf50e0
XL
21
22error: aborting due to 2 previous errors
23
48663c56 24Some errors have detailed explanations: E0277, E0599.
8faf50e0 25For more information about an error, try `rustc --explain E0277`.