2024-02-07 02:42:01 +00:00
|
|
|
//@ check-pass
|
2019-07-26 21:54:25 +00:00
|
|
|
|
2016-04-12 13:41:46 +00:00
|
|
|
#![feature(rustc_private)]
|
|
|
|
|
2020-07-04 15:20:24 +00:00
|
|
|
extern crate rustc_macros;
|
2020-06-02 19:46:42 +00:00
|
|
|
extern crate rustc_serialize;
|
2024-01-01 15:13:39 +00:00
|
|
|
extern crate rustc_span;
|
2016-04-12 13:41:46 +00:00
|
|
|
|
2022-12-12 19:37:28 +00:00
|
|
|
// Necessary to pull in object code as the rest of the rustc crates are shipped only as rmeta
|
|
|
|
// files.
|
|
|
|
#[allow(unused_extern_crates)]
|
|
|
|
extern crate rustc_driver;
|
|
|
|
|
2020-07-04 15:20:24 +00:00
|
|
|
use rustc_macros::{Decodable, Encodable};
|
|
|
|
|
|
|
|
#[derive(Decodable, Encodable, Debug)]
|
2016-04-12 13:41:46 +00:00
|
|
|
struct A {
|
|
|
|
a: String,
|
|
|
|
}
|
|
|
|
|
|
|
|
trait Trait {
|
|
|
|
fn encode(&self);
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<T> Trait for T {
|
|
|
|
fn encode(&self) {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|