repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
d: Merge dmd, druntime d8e3976a58, phobos 7a6e95688
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail24301.d
blob
be09c883e1c64e6433e02448eeac80b9361d28da
1
/+
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail24301.d(18): Error: function `fail24301.fun(S __param_0)` is not callable using argument types `(S)`
5
fail_compilation/fail24301.d(18): `ref S(ref S)` copy constructor cannot be used because it is annotated with `@disable`
6
---
7
+/
8
struct
S
9
{
10
@disable
this
(
ref
S
);
11
}
12
13
@safe
void
fun
(
S
) {}
14
15
@safe
void
main
()
16
{
17
S s
;
18
fun
(
s
);
19
}