Skip to content

Commit 07704ed

Browse files
committed
Update list of types with magic Copy impls
Numeric types, char, bool, `!`, and raw pointers all have ordinary Copy impls in std, not provided by the compiler.
1 parent a01d151 commit 07704ed

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/special-types-and-traits.md

+3-8
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,11 @@ For unions, this means all variants have to be `Copy`.
6767

6868
`Copy` is implemented by the compiler for
6969

70-
* [Numeric types]
71-
* `char`, `bool`, and [`!`]
7270
* [Tuples] of `Copy` types
7371
* [Arrays] of `Copy` types
7472
* [Shared references]
75-
* [Raw pointers]
76-
* [Function pointers] and [function item types]
73+
* [Function pointers]
74+
* [Function items]
7775

7876
## `Clone`
7977

@@ -168,21 +166,18 @@ These implicit `Sized` bounds may be relaxed by using the special `?Sized` bound
168166
[drop check]: ../nomicon/dropck.html
169167
[dynamically sized type]: dynamically-sized-types.md
170168
[Function pointers]: types/function-pointer.md
171-
[function item types]: types/function-item.md
169+
[Function items]: types/function-item.md
172170
[implementation items]: items/implementations.md
173171
[indexing expressions]: expressions/array-expr.md#array-and-slice-indexing-expressions
174172
[interior mutability]: interior-mutability.md
175-
[Numeric types]: types/numeric.md
176173
[Methods]: items/associated-items.md#associated-functions-and-methods
177174
[method resolution]: expressions/method-call-expr.md
178175
[operators]: expressions/operator-expr.md
179176
[orphan rules]: items/implementations.md#trait-implementation-coherence
180-
[Raw pointers]: types/pointer.md#raw-pointers-const-and-mut
181177
[`static` items]: items/static-items.md
182178
[Shared references]: types/pointer.md#shared-references-
183179
[the standard library]: ../std/index.html
184180
[trait object]: types/trait-object.md
185181
[Tuples]: types/tuple.md
186182
[Type parameters]: types/parameters.md
187183
[variance]: subtyping.md#variance
188-
[`!`]: types/never.md

0 commit comments

Comments
 (0)