You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect suggestion to add turbofish when > is missing #121901
changed the title [-]Incorrect suggestions to add turbofish when `>` is missing[/-][+]Incorrect suggestion to add turbofish when `>` is missing[/+]on Mar 2, 2024
If there is an extra >, the compiler is also suggesting add turbofish:
typeOne = for<'b,'a> fn(Box<dynSend + 'a + 'b>>);
output:
--> ./t/test.rs:1:30 |1 | type One = for<'b, 'a> fn(Box<dyn Send + 'a + 'b>>); | ^ |help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments |1 | type One = for<'b, 'a> fn(Box::<dyn Send + 'a + 'b>>); | ++
Activity
[-]Incorrect suggestions to add turbofish when `>` is missing[/-][+]Incorrect suggestion to add turbofish when `>` is missing[/+]chenyukang commentedon Mar 2, 2024
If there is an extra
>, the compiler is also suggesting add turbofish:output:
freyacodes commentedon Apr 2, 2025
I am currently working on a PR for these two issues. I already fixed the original part of this issue with no tests failing
Fix two incorrect turbofish suggestions
Rollup merge of rust-lang#139264 - freyacodes:fix/bad-turbofish-hints…
Rollup merge of rust-lang#139264 - freyacodes:fix/bad-turbofish-hints…
Unrolled build for rust-lang#139264