diff options
| author | iximeow <me@iximeow.net> | 2020-09-13 20:55:06 -0700 |
|---|---|---|
| committer | iximeow <me@iximeow.net> | 2020-09-13 21:24:34 -0700 |
| commit | 0eac38b7a65c29734f4b2d34f35ee0aa9cb00a74 (patch) | |
| tree | d2c46ff6ec5a1229f71f0b47e5824fa434d0e716 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | dd33766e4a9a918058c3447d42491e874e21f7cc (diff) | |
| download | rust-0eac38b7a65c29734f4b2d34f35ee0aa9cb00a74.tar.gz rust-0eac38b7a65c29734f4b2d34f35ee0aa9cb00a74.zip | |
fix syntax error in suggesting generic constraint in trait parameter
suggest `where T: Foo` for the first bound on a trait, then suggest `, T: Foo` when the suggested bound would add to an existing set of `where` clauses. `where T: Foo` may be the first bound if `T` has a default, because we'd rather suggest ``` trait A<T=()> where T: Copy ``` than ``` trait A<T: Copy=()> ``` for legibility reasons.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
