diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-13407.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-13407.rs b/src/test/ui/issues/issue-13407.rs new file mode 100644 index 000000000..7ea81ffb5 --- /dev/null +++ b/src/test/ui/issues/issue-13407.rs @@ -0,0 +1,9 @@ +mod A { + struct C; +} + +fn main() { + A::C = 1; + //~^ ERROR: invalid left-hand side of assignment + //~| ERROR: struct `C` is private +} |