rust/tests/ui/parser/trait-plusequal-splitting.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
199 B
Rust
Raw Normal View History

// Fixes issue where `+` in generics weren't parsed if they were part of a `+=`.
2022-05-28 04:57:02 -05:00
// check-pass
2018-10-20 16:02:06 -05:00
struct Whitespace<T: Clone + = ()> { t: T }
struct TokenSplit<T: Clone += ()> { t: T }
2018-10-20 16:02:06 -05:00
fn main() {}