Skip to content

Commit adaeb41

Browse files
author
Jakub Wieczorek
committed
---
yaml --- r: 156249 b: refs/heads/snap-stage3 c: 4442e6d h: refs/heads/master i: 156247: a67d91a v: v3
1 parent e9033b5 commit adaeb41

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: c29a7520e7fb4a5b4d4eccfc594e05793ef6688d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 17da4c761da438404f018bc1dee9e2533bb4e0de
4+
refs/heads/snap-stage3: 4442e6d890136dd20b807140f60718d62f023392
55
refs/heads/try: 6601b0501e31d08d3892a2d5a7d8a57ab120bf75
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/doc/reference.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,23 +1328,6 @@ let c = [Cookie, Cookie, Cookie, Cookie];
13281328
The precise memory layout of a structure is not specified. One can specify a
13291329
particular layout using the [`repr` attribute](#ffi-attributes).
13301330

1331-
By using the `struct_inherit` feature gate, structures may use single
1332-
inheritance. A Structure may only inherit from a single other structure, called
1333-
the _super-struct_. The inheriting structure (sub-struct) acts as if all fields
1334-
in the super-struct were present in the sub-struct. Fields declared in a
1335-
sub-struct must not have the same name as any field in any (transitive)
1336-
super-struct. All fields (both declared and inherited) must be specified in any
1337-
initializers. Inheritance between structures does not give subtyping or
1338-
coercion. The super-struct and sub-struct must be defined in the same crate.
1339-
The super-struct must be declared using the `virtual` keyword. For example:
1340-
1341-
```{.ignore}
1342-
virtual struct Sup { x: int }
1343-
struct Sub : Sup { y: int }
1344-
let s = Sub {x: 10, y: 11};
1345-
let sx = s.x;
1346-
```
1347-
13481331
### Enumerations
13491332

13501333
An _enumeration_ is a simultaneous definition of a nominal [enumerated

0 commit comments

Comments
 (0)