```rust pub fn f(_: &(ToString + 'static)) {} ``` This function is documented as: >  The parentheses are missing and the function would not compile without them: ``` error[E0178]: expected a path on the left-hand side of `+`, not `&ToString` --> src/main.rs:1:13 | 1 | pub fn f(_: &ToString + 'static) {} | ^^^^^^^^^^^^^^^^^^^ help: try adding parentheses: `&(ToString + 'static)` ```
Activity
GuillaumeGomez commentedon May 30, 2017
Well found! Taking a look.
Auto merge of #42318 - GuillaumeGomez:rustdoc-fix-signature, r=QuietM…