Lionel Parreaux
Lionel Parreaux

Reputation: 1225

What does a trait bound mean when it is added to itself?

In the Rust documentation, I see implementations like this one, from Option:

impl<T> Copy for Option<T> where T: Copy + Copy

What does the Copy + Copy bound mean? Is it just a documentation quirk?

Upvotes: 2

Views: 91

Answers (1)

Shepmaster
Shepmaster

Reputation: 430514

Yes, this is a known and fixed issue in rustdoc.

Upvotes: 3

Related Questions