Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test19145.d
blob: ef5faa840f7bebfe13fd5ed8c203785565896ba7 [
file
] [
log
] [
blame
]
// https://issues.dlang.org/show_bug.cgi?id=19415
struct
S
{
int
x
;
S foo
()
return
{
return
S
(
x
);
}
this
(
this
)
@disable
;
}
S bar
()
{
S s
;
return
s
;
// Error: struct `S` is not copyable because it is annotated with @disable
}