Skip to content

Commit a162596

Browse files
committed
update cross-reference to slice
1 parent 50c855b commit a162596

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/trait-bounds.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Bounds that don't use the item's parameters or [higher-ranked lifetimes] are che
7777
It is an error for such a bound to be false.
7878

7979
[`Copy`], [`Clone`], and [`Sized`] bounds are also checked for certain generic types when using the item, even if the use does not provide a concrete type.
80-
It is an error to have `Copy` or `Clone` as a bound on a mutable reference, [trait object], or [slice][arrays].
80+
It is an error to have `Copy` or `Clone` as a bound on a mutable reference, [trait object], or [slice].
8181
It is an error to have `Sized` as a bound on a trait object or slice.
8282

8383
```rust,compile_fail
@@ -171,6 +171,7 @@ fn call_on_ref_zero<F>(f: F) where F: for<'a> Fn(&'a i32) {
171171
[supertraits]: items/traits.md#supertraits
172172
[generic]: items/generics.md
173173
[higher-ranked lifetimes]: #higher-ranked-trait-bounds
174+
[slice]: types/slice.md
174175
[Trait]: items/traits.md#trait-bounds
175176
[trait object]: types/trait-object.md
176177
[trait objects]: types/trait-object.md

0 commit comments

Comments
 (0)