Open
Description
I tried this code:
use serde::{Deserialize, Serialize};
#[derive(Deserialize, Serialize)]
enum Point {
#[deprecated]
TwoD(i32, i32),
ThreeD(i32, i32, i32),
}
fn main() {
println!("Hello, world!");
}
I expected to see this happen: explanation
No deprecated warnings generated.
Instead, this happened: explanation
use of deprecated tuple variant Point::TwoD
#[warn(deprecated)]
on by default
Meta
rustc --version --verbose
:
rustc 1.57.0 (f1edd0429 2021-11-29)
binary: rustc
commit-hash: f1edd0429582dd29cccacaf50fd134b05593bd9c
commit-date: 2021-11-29
host: x86_64-unknown-linux-gnu
release: 1.57.0
LLVM version: 13.0.0