diff options
Diffstat (limited to 'tests/ui/error-codes/E0560.rs')
-rw-r--r-- | tests/ui/error-codes/E0560.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0560.rs b/tests/ui/error-codes/E0560.rs new file mode 100644 index 000000000..1d60f8948 --- /dev/null +++ b/tests/ui/error-codes/E0560.rs @@ -0,0 +1,8 @@ +struct Simba { + mother: u32, +} + +fn main() { + let s = Simba { mother: 1, father: 0 }; + //~^ ERROR E0560 +} |