Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![deny(warnings)]
- #[deprecated]
- trait Deprecated {}
- #[deprecated]
- struct DeprecatedTy;
- #[allow(deprecated)]
- mod a {
- use super::{Deprecated, DeprecatedTy};
- impl Deprecated for DeprecatedTy {}
- pub fn foo() -> impl Deprecated { DeprecatedTy }
- }
- fn main() {
- a::foo();
- }
Add Comment
Please, Sign In to add comment