about summary refs log tree commit diff
path: root/src/test/ui/parser/trait-plusequal-splitting.rs
blob: 26ac3ead6a5a677f257891430af89ba892f25d01 (plain)
1
2
3
4
5
6
7
8
// Fixes issue where `+` in generics weren't parsed if they were part of a `+=`.

// build-pass (FIXME(62277): could be check-pass?)

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

fn main() {}