-
-
Notifications
You must be signed in to change notification settings - Fork 333
Closed
Labels
Description
This is the intersection of rust-lang/rust#97362 with rust-lang/rust#108185.
fn main() {
let _ = for<T> |_: T| {};
}
error: expected `::`
--> dev/main.rs:2:20
|
2 | let _ = for<T> |_: T| {};
| ^
Syn is expecting ::
as if it were something like this:
struct T;
impl T {
const UNIT: () = ();
}
fn main() {
let _ = for <T>::UNIT in None {};
}