]> git.proxmox.com Git - rustc.git/blame - tests/ui-fulldeps/rustc_encodable_hygiene.rs
bump version to 1.80.1+dfsg1-1~bpo12+pve1
[rustc.git] / tests / ui-fulldeps / rustc_encodable_hygiene.rs
CommitLineData
c620b35d 1//@ check-pass
416331ca 2
a7813a04 3#![feature(rustc_private)]
1a4d82fc 4
3dfed10e 5extern crate rustc_macros;
f035d41b 6extern crate rustc_serialize;
c0240ec0 7extern crate rustc_span;
a7813a04 8
9c376795
FG
9// Necessary to pull in object code as the rest of the rustc crates are shipped only as rmeta
10// files.
11#[allow(unused_extern_crates)]
12extern crate rustc_driver;
13
3dfed10e
XL
14use rustc_macros::{Decodable, Encodable};
15
16#[derive(Decodable, Encodable, Debug)]
a7813a04
XL
17struct A {
18 a: String,
19}
20
21trait Trait {
22 fn encode(&self);
223e47cc
LB
23}
24
a7813a04
XL
25impl<T> Trait for T {
26 fn encode(&self) {
27 unimplemented!()
28 }
223e47cc 29}
a7813a04
XL
30
31fn main() {}