Guest User

Untitled

a guest
Oct 16th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #![allow(unused_assignments)]
  2. #![allow(unused_variables)]
  3. #![allow(dead_code)]
  4. #![deny(unused_mut)]
  5.  
  6. struct Foo;
  7. impl Foo {
  8. fn foo(mut self) {} //~ ERROR: variable does not need to be mutable
  9. fn bar(mut self: Box<Foo>) {} //~ ERROR: variable does not need to be mutable
  10. }
  11.  
  12. fn main() {}
Add Comment
Please, Sign In to add comment