diff options
Diffstat (limited to 'src/test/ui/error-codes/E0506.rs')
-rw-r--r-- | src/test/ui/error-codes/E0506.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/error-codes/E0506.rs b/src/test/ui/error-codes/E0506.rs deleted file mode 100644 index 062a44a52..000000000 --- a/src/test/ui/error-codes/E0506.rs +++ /dev/null @@ -1,11 +0,0 @@ -struct FancyNum { - num: u8, -} - -fn main() { - let mut fancy_num = FancyNum { num: 5 }; - let fancy_ref = &fancy_num; - fancy_num = FancyNum { num: 6 }; //~ ERROR [E0506] - - println!("Num: {}, Ref: {}", fancy_num.num, fancy_ref.num); -} |