]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/append-impl.rs
Rollup merge of #106816 - TimNN:rental-remap, r=oli-obj
[rust.git] / tests / ui / proc-macro / append-impl.rs
1 // run-pass
2 // aux-build:append-impl.rs
3
4 #![allow(warnings)]
5
6 #[macro_use]
7 extern crate append_impl;
8
9 trait Append {
10     fn foo(&self);
11 }
12
13 #[derive(PartialEq,
14          Append,
15          Eq)]
16 struct A {
17     inner: u32,
18 }
19
20 fn main() {
21     A { inner: 3 }.foo();
22 }