2014-12-20 02:29:19 -08:00
|
|
|
//@ pp-exact
|
|
|
|
|
|
2016-06-29 21:53:01 +09:00
|
|
|
fn f<'a, 'b, T>(t: T) -> isize where T: 'a, 'a: 'b, T: Eq { 0 }
|
2014-12-20 08:41:33 -05:00
|
|
|
|
Add pp-exact test involving `where T:`
Currently fails.
---- [pretty] src/test/pretty/where-clauses.rs stdout ----
error: pretty-printed source does not match expected source
expected:
------------------------------------------
// 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() {}
------------------------------------------
actual:
------------------------------------------
// 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() {}
------------------------------------------
diff:
------------------------------------------
3 fn f<'a, 'b, T>(t: T) -> isize where T: 'a, 'a: 'b, T: Eq { 0 }
4
5 // This is legal syntax, sometimes generated by macros. `where T: $($bound+)*`
- fn zero_bounds<'a, T>() where 'a:, T: {}
+ fn zero_bounds<'a, T>() where 'a, T {}
7
8 fn main() {}
9
2022-06-16 17:00:29 -07:00
|
|
|
// This is legal syntax, sometimes generated by macros. `where T: $($bound+)*`
|
|
|
|
|
fn zero_bounds<'a, T>() where 'a:, T: {}
|
|
|
|
|
|
2021-12-01 11:45:14 -08:00
|
|
|
fn main() {}
|