diff options
Diffstat (limited to 'src/test/ui/error-codes/E0503.rs')
-rw-r--r-- | src/test/ui/error-codes/E0503.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/test/ui/error-codes/E0503.rs b/src/test/ui/error-codes/E0503.rs deleted file mode 100644 index 88f5fc1bb..000000000 --- a/src/test/ui/error-codes/E0503.rs +++ /dev/null @@ -1,9 +0,0 @@ -fn main() { - let mut value = 3; - let _borrow = &mut value; - let _sum = value + 1; //~ ERROR E0503 - _borrow.use_mut(); -} - -trait Fake { fn use_mut(&mut self) { } fn use_ref(&self) { } } -impl<T> Fake for T { } |