Skip to content

Reference on bool incorrectly claims that all primitives implement certain traits #2408

Open

Description

@maxdexh

Location: https://doc.rust-lang.org/nightly/reference/types/boolean.html#r-type.bool.traits

Like all primitives, the boolean type implements the traits Clone, Copy, Sized, Send, and Sync.

Going over the primitive types, there is a counterexample for each of these. In particular, slices and str implement none of the first 3, raw pointers none of the remaining 2.

This should just say "Like many/most primitives".

@rustbot label E-easy

Activity

  1. added
    E-EasyWe believe this would not be difficult to actually fix
    on Nov 11, 2026
  2. Usman-Azfar commented on Nov 13, 2026

    @Usman-Azfar

    @rustbot claim

    Will update the sentence to say "Like most primitives" instead of "all primitives", since str/slices don't implement Clone/Copy/Sized and raw pointers don't implement Send/Sync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

E-EasyWe believe this would not be difficult to actually fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions