]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-97677.fixed
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / issue-97677.fixed
1 // run-rustfix
2
3 fn add_ten<N: std::ops::Add<i32, Output = N>>(n: N) -> N {
4     n + 10
5     //~^ ERROR cannot add `{integer}` to `N`
6 }
7
8 fn main() { add_ten(0); }