File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
33A consequence of how bounds work is that even if a ` trait ` doesn't
44include any functionality, you can still use it as a bound. ` Eq ` and
5- ` Ord ` are examples of such ` trait ` s from the ` std ` library.
5+ ` Copy ` are examples of such ` trait ` s from the ` std ` library.
66
77``` rust,editable
88struct Cardinal;
@@ -36,8 +36,8 @@ fn main() {
3636
3737### See also:
3838
39- [ ` std::cmp::Eq ` ] [ eq ] , [ ` std::cmp::Ord ` s ] [ ord ] , and [ ` trait ` s] [ traits ]
39+ [ ` std::cmp::Eq ` ] [ eq ] , [ ` std::marker::Copy ` ] [ copy ] , and [ ` trait ` s] [ traits ]
4040
4141[ eq ] : https://doc.rust-lang.org/std/cmp/trait.Eq.html
42- [ ord ] : https://doc.rust-lang.org/std/cmp /trait.Ord .html
42+ [ copy ] : https://doc.rust-lang.org/std/marker /trait.Copy .html
4343[ traits ] : ../../trait.md
You can’t perform that action at this time.
0 commit comments