about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2020-09-13 20:55:06 -0700
committeriximeow <me@iximeow.net>2020-09-13 21:24:34 -0700
commit0eac38b7a65c29734f4b2d34f35ee0aa9cb00a74 (patch)
treed2c46ff6ec5a1229f71f0b47e5824fa434d0e716 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parentdd33766e4a9a918058c3447d42491e874e21f7cc (diff)
downloadrust-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