diff options
Diffstat (limited to 'src/test/ui/error-codes/E0509.rs')
-rw-r--r-- | src/test/ui/error-codes/E0509.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/ui/error-codes/E0509.rs b/src/test/ui/error-codes/E0509.rs deleted file mode 100644 index b2665c4cc..000000000 --- a/src/test/ui/error-codes/E0509.rs +++ /dev/null @@ -1,18 +0,0 @@ -struct FancyNum { - num: usize -} - -struct DropStruct { - fancy: FancyNum -} - -impl Drop for DropStruct { - fn drop(&mut self) { - } -} - -fn main() { - let drop_struct = DropStruct{fancy: FancyNum{num: 5}}; - let fancy_field = drop_struct.fancy; //~ ERROR E0509 - println!("Fancy: {}", fancy_field.num); -} |