diff options
Diffstat (limited to 'src/test/ui/error-codes/E0502.rs')
-rw-r--r-- | src/test/ui/error-codes/E0502.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/error-codes/E0502.rs b/src/test/ui/error-codes/E0502.rs deleted file mode 100644 index 958380ece..000000000 --- a/src/test/ui/error-codes/E0502.rs +++ /dev/null @@ -1,12 +0,0 @@ -fn bar(x: &mut i32) {} -fn foo(a: &mut i32) { - let ref y = a; - bar(a); //~ ERROR E0502 - y.use_ref(); -} - -fn main() { -} - -trait Fake { fn use_mut(&mut self) { } fn use_ref(&self) { } } -impl<T> Fake for T { } |