mirror of https://github.com/rust-lang/reference
Correct for trait-bounds.md
`fn f<A> where A: Copy () {}` -> `fn f<A>() where A: Copy {}`
This commit is contained in:
parent
2cb0ed9ba5
commit
fd6e375b89
|
@ -27,7 +27,7 @@ provided on any type in a [where clause]. There are also shorter forms for
|
|||
certain common cases:
|
||||
|
||||
* Bounds written after declaring a [generic parameter][generic]:
|
||||
`fn f<A: Copy>() {}` is the same as `fn f<A> where A: Copy () {}`.
|
||||
`fn f<A: Copy>() {}` is the same as `fn f<A>() where A: Copy {}`.
|
||||
* In trait declarations as [supertraits]: `trait Circle : Shape {}` is
|
||||
equivalent to `trait Circle where Self : Shape {}`.
|
||||
* In trait declarations as bounds on [associated types]:
|
||||
|
|
Loading…
Reference in New Issue