about summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-rustc_encodable_decodable.rs
blob: 71caf43806d0966305a9936b3099eb20e1d6c2e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![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;