Guest User

Untitled

a guest
Sep 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #![deny(warnings)]
  2.  
  3. #[deprecated]
  4. trait Deprecated {}
  5.  
  6. #[deprecated]
  7. struct DeprecatedTy;
  8.  
  9. #[allow(deprecated)]
  10. mod a {
  11. use super::{Deprecated, DeprecatedTy};
  12.  
  13. impl Deprecated for DeprecatedTy {}
  14.  
  15. pub fn foo() -> impl Deprecated { DeprecatedTy }
  16. }
  17.  
  18. fn main() {
  19. a::foo();
  20. }
Add Comment
Please, Sign In to add comment