The following code generates a warning on nightly and beta but not on stable: ```rust #[deprecated = "oh no"] #[derive(Default)] struct X; ```
The following code generates a warning on nightly and beta but not on stable: