diff options
| author | David Tolnay <dtolnay@gmail.com> | 2022-06-16 17:00:29 -0700 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2022-06-16 17:03:47 -0700 |
| commit | 1b8ca54002cec4affe363584ca0946568beeabf0 (patch) | |
| tree | 342fc56c8c77f24ff7eb97d9418dd640aab1ddcf /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 3bebee73397b692e84b9cc1b6af439fae78918c9 (diff) | |
| download | rust-1b8ca54002cec4affe363584ca0946568beeabf0.tar.gz rust-1b8ca54002cec4affe363584ca0946568beeabf0.zip | |
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
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
