Skip to content

the constraint is not on the trait itself - #728

Merged
tshepang merged 1 commit into
mainfrom
tshepang/fix-trait-bound
Sep 29, 2026
Merged

tshepang merged 1 commit into
mainfrom
tshepang/fix-trait-bound

Conversation

@tshepang

@tshepang tshepang commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

saw this while working on #689 (comment)

Comment thread src/glossary.rst

A :dt:`trait bound` is a :t:`bound` that imposes a constraint on the
:t:`[trait]s` of :t:`[generic parameter]s`.
A :dt:`trait bound` is a :t:`bound` that uses a :t:`[trait]` to impose a constraint.

@kirtchev-adacore kirtchev-adacore Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect you may be mixing semantics here. The Reference defines the general term bound, and then further specializes it to traits in the form of trait bound.

View changes since the review

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I think you are actually right.

@tshepang
tshepang added this pull request to the merge queue Sep 29, 2026
Merged via the queue into main with commit 0558c57 Sep 29, 2026
4 checks passed
@tshepang
tshepang deleted the tshepang/fix-trait-bound branch September 29, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants