about summary refs log tree commit diff
path: root/tests/ui/parser/trait-plusequal-splitting.rs
blob: 2824da50d0f8ece0fd1dcc21f971c66df60d1e38 (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() {}