]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-97677.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / issue-97677.stderr
1 error[E0369]: cannot add `{integer}` to `N`
2   --> $DIR/issue-97677.rs:4:7
3    |
4 LL |     n + 10
5    |     - ^ -- {integer}
6    |     |
7    |     N
8    |
9 help: consider restricting type parameter `N`
10    |
11 LL | fn add_ten<N: std::ops::Add<i32, Output = N>>(n: N) -> N {
12    |             ++++++++++++++++++++++++++++++++
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0369`.