mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
d7d6238b23
This is consistent with all other diagnostics I could find containing features and enables the use of `DiagSymbolList` for generalizing diagnostics for unstable library features to multiple features.
17 lines
650 B
Rust
17 lines
650 B
Rust
#![crate_type = "lib"]
|
|
|
|
// This isn't intended to compile, so it's easiest to just ignore this error.
|
|
extern crate rustc_serialize; //~ERROR can't find crate for `rustc_serialize`
|
|
|
|
#[derive(
|
|
RustcEncodable,
|
|
//~^ ERROR use of unstable library feature `rustc_encodable_decodable`
|
|
//~^^ WARNING this was previously accepted by the compiler
|
|
//~^^^ WARNING use of deprecated macro `RustcEncodable`
|
|
RustcDecodable,
|
|
//~^ ERROR use of unstable library feature `rustc_encodable_decodable`
|
|
//~^^ WARNING this was previously accepted by the compiler
|
|
//~^^^ WARNING use of deprecated macro `RustcDecodable`
|
|
)]
|
|
struct S;
|