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
Ordinarily Rust does not accept where in this position. But with feature(lazy_type_alias), it does.
error: where clauses are not allowed after the type for type aliases --> src/main.rs:23:1 |23 | / where24 | | R: std::io::Read,25 | | W: std::io::Write; | |_____________________^ | = note: see issue #112792 <https://github.com/rust-lang/rust/issues/112792> for more information = help: add `#![feature(lazy_type_alias)]` to the crate attributes to enable
The text was updated successfully, but these errors were encountered:
NB: Since the stabilization of GATs, rustc syntactically accepts both where-clause locations (before, after, before & after).
I don't know how syn usually fares in these kinds of situations but technically speaking type T = () where; has been syntactically valid1 for quite a while now.
Tracking issue: rust-lang/rust#112792
Ordinarily Rust does not accept
where
in this position. But withfeature(lazy_type_alias)
, it does.The text was updated successfully, but these errors were encountered: