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
regression: error: path separator must be a double colon (in where clause) #140227
The upper is fine, but lower gives the error. It's also fine if you add a space, where t: Copy.
On nightly, it also mentions type ascription:
error: path separator must be a double colon
--> src/lib.rs:2:26
|
2 | pub fn lower<t>() where t:Copy {}
| ^
|
= note: if you meant to annotate an expression with a type, the type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728>
help: use a double colon instead
|
2 | pub fn lower<t>() where t::Copy {}
| +
edit: that was with rustc 1.88.0-nightly (78f2104e3 2025-04-16), but not after I updated to 6bc57c6bf 2025-04-22.
changed the title [-]regression: error: path separator must be a double colon (in `where` clause[/-][+]regression: error: path separator must be a double colon (in `where` clause)[/+]on Apr 23, 2025
Activity
cuviper commentedon Apr 23, 2025
I minimized it to this example:
The
upperis fine, butlowergives the error. It's also fine if you add a space,where t: Copy.On nightly, it also mentions type ascription:
edit: that was with
rustc 1.88.0-nightly (78f2104e3 2025-04-16), but not after I updated to6bc57c6bf 2025-04-22.[-]regression: error: path separator must be a double colon (in `where` clause[/-][+]regression: error: path separator must be a double colon (in `where` clause)[/+]fmease commentedon Apr 23, 2025
Regressed in commit 500a686 (PR #136808)
fmease commentedon Apr 23, 2025
Also regressed:
cuviper commentedon Apr 23, 2025
To be clear, all of those also warn that you should use CamelCase, but that's a style lint, not a language requirement.
apiraino commentedon Apr 24, 2025
Assigning priority (discussion on Zulip).
@rustbot label -I-prioritize +P-critical
Rollup merge of rust-lang#140228 - fmease:revert-overzealous-colon-re…
Rollup merge of rust-lang#140228 - fmease:revert-overzealous-colon-re…
Unrolled build for rust-lang#140228
fmease commentedon Apr 28, 2025
Fixed in #140228.
Backported in #140269.