Skip to content

Commit 1b8ca54

Browse files
committed
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
1 parent 3bebee7 commit 1b8ca54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/pretty/where-clauses.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22

33
fn f<'a, 'b, T>(t: T) -> isize where T: 'a, 'a: 'b, T: Eq { 0 }
44

5+
// This is legal syntax, sometimes generated by macros. `where T: $($bound+)*`
6+
fn zero_bounds<'a, T>() where 'a:, T: {}
7+
58
fn main() {}

0 commit comments

Comments
 (0)