summaryrefslogtreecommitdiffstats
path: root/src/test/ui/attributes/method-attributes.rs
blob: 67439718bd3ccb2629635612fc4440916ff5c385 (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
// build-pass (FIXME(62277): could be check-pass?)
// pp-exact - Make sure we print all the attributes
// pretty-expanded FIXME #23616

#![feature(rustc_attrs)]

#[rustc_dummy]
trait Frobable {
    #[rustc_dummy]
    fn frob(&self);
    #[rustc_dummy]
    fn defrob(&self);
}

#[rustc_dummy]
impl Frobable for isize {
    #[rustc_dummy]
    fn frob(&self) {
        #![rustc_dummy]
    }

    #[rustc_dummy]
    fn defrob(&self) {
        #![rustc_dummy]
    }
}

fn main() {}