rust/tests/pretty/where-clauses.rs
2023-01-11 09:32:08 +00:00

9 lines
212 B
Rust

// pp-exact
fn f<'a, 'b, T>(t: T) -> isize where T: 'a, 'a: 'b, T: Eq { 0 }
// This is legal syntax, sometimes generated by macros. `where T: $($bound+)*`
fn zero_bounds<'a, T>() where 'a:, T: {}
fn main() {}