blob: c7d8b3b1403ab774c2f761f2300e08e64cfc8cf2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// run-pass
#![allow(unused_attributes)]
#![allow(non_camel_case_types)]
// pp-exact - Make sure we print all the attributes
// pretty-expanded FIXME #23616
#![feature(custom_attribute)]
#[frobable]
trait frobable {
#[frob_attr]
fn frob(&self);
#[defrob_attr]
fn defrob(&self);
}
#[int_frobable]
impl frobable for isize {
#[frob_attr1]
fn frob(&self) {
#![frob_attr2]
}
#[defrob_attr1]
fn defrob(&self) {
#![defrob_attr2]
}
}
pub fn main() { }
|