@@ -676,8 +676,8 @@ from outside the source file: either by an explicit `source_directive` in
676
676
a referencing crate file, or by the filename of the source file itself.
677
677
678
678
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.
681
681
682
682
# Items and attributes
683
683
@@ -2292,8 +2292,7 @@ execute after the `assert`.
2292
2292
## Types
2293
2293
2294
2294
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.
2297
2296
2298
2297
Built-in types and type-constructors are tightly integrated into the language,
2299
2298
in nontrivial ways that are not possible to emulate in user-defined
@@ -2562,8 +2561,8 @@ Raw pointers (`*`)
2562
2561
### Function types
2563
2562
2564
2563
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.
2567
2566
2568
2567
An example of a ` fn ` type:
2569
2568
0 commit comments