Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
structs
/
modules
/
structs_with_noinit
/
shapes.v
22
lines
·
16
sloc
·
261 bytes
·
6488041a749df9762348d019c4223908c476f2e2
Raw
1
module
structs_with_noinit
2
3
@[noinit]
4
pub
struct
Image {}
5
6
@[noinit]
7
pub
struct
Rect {}
8
9
@[noinit]
10
pub
struct
Circle {}
11
12
pub
fn
make_circle() Circle {
13
return
Circle{}
14
}
15
16
pub
fn
make_image() Image {
17
return
Image{}
18
}
19
20
pub
fn
make_rect() Rect {
21
return
Rect{}
22
}
23