]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-50582.stderr
Rollup merge of #58931 - estebank:elide-receiver-tyerr, r=varkor
[rust.git] / src / test / ui / issues / issue-50582.stderr
1 error[E0277]: cannot add `()` to `{integer}`
2   --> $DIR/issue-50582.rs:2:18
3    |
4 LL |     Vec::<[(); 1 + for x in 0..1 {}]>::new();
5    |                  ^ no implementation for `{integer} + ()`
6    |
7    = help: the trait `std::ops::Add<()>` is not implemented for `{integer}`
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0277`.