Skip to content

Commit a8e1d83

Browse files
committed
manual: remove all mention of constraints.
1 parent c4237db commit a8e1d83

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

doc/rust.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,8 @@ from outside the source file: either by an explicit `source_directive` in
676676
a referencing crate file, or by the filename of the source file itself.
677677

678678
A source file that contains a `main` function can be compiled to an
679-
executable. If a `main` function is present, it must have no [type parameters](#type-parameters)
680-
and no [constraints](#constraints). Its return type must be [`nil`](#primitive-types) and it must take no arguments.
679+
executable. If a `main` function is present,
680+
its return type must be [`nil`](#primitive-types) and it must take no arguments.
681681

682682
# Items and attributes
683683

@@ -2292,8 +2292,7 @@ execute after the `assert`.
22922292
## Types
22932293

22942294
Every slot and value in a Rust program has a type. The _type_ of a *value*
2295-
defines the interpretation of the memory holding it. The type of a *slot* may
2296-
also include [constraints](#constraints).
2295+
defines the interpretation of the memory holding it.
22972296

22982297
Built-in types and type-constructors are tightly integrated into the language,
22992298
in nontrivial ways that are not possible to emulate in user-defined
@@ -2562,8 +2561,8 @@ Raw pointers (`*`)
25622561
### Function types
25632562

25642563
The function type-constructor `fn` forms new function types. A function type
2565-
consists of a sequence of input slots, an optional set of
2566-
[input constraints](#constraints) and an output slot.
2564+
consists of a set of function-type modifiers (`pure`, `unsafe`, `extern`, etc.),
2565+
a sequence of input slots and an output slot.
25672566

25682567
An example of a `fn` type:
25692568

0 commit comments

Comments
 (0)