// Paths in type contexts may be followed by single colons. // This means we can't generally assume that the user typo'ed a double colon. // issue: //@ check-pass #![crate_type = "lib"] #![expect(non_camel_case_types)] #[rustfmt::skip] mod garden { fn f() where path:to::somewhere {} // OK! fn g(_: impl Take) {} // OK! #[cfg(any())] fn h() where a::path:to::nowhere {} // OK! fn i(_: impl Take:to::somewhere>) {} // OK! mod to { pub(super) trait somewhere {} } trait Take { type path; } }