rust/src/test/ui/parser/trait-plusequal-splitting.rs

9 lines
236 B
Rust
Raw Normal View History

// Fixes issue where `+` in generics weren't parsed if they were part of a `+=`.
// build-pass (FIXME(62277): could be 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() {}