More than one deprecated attribute has been put on an item.
Erroneous code example:
#![allow(unused)]
fn main() {
#[deprecated(note = "because why not?")]
#[deprecated(note = "right?")] // error!
fn the_banished() {}
} The deprecated attribute can only be present once on an item.
#![allow(unused)]
fn main() {
#[deprecated(note = "because why not, right?")]
fn the_banished() {} // ok!
}
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0550.html