summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/trait-plusequal-splitting.rs
blob: 6ca6774507b88f02d6354f882ed98f8e6c794674 (plain)
1
2
3
4
5
6
7
8
// Fixes issue where `+` in generics weren't parsed if they were part of a `+=`.

// check-pass

struct Whitespace<T: Clone + = ()> { t: T }
struct TokenSplit<T: Clone +=  ()> { t: T }

fn main() {}