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
200 B
Rust
Raw Normal View History

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