summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/edition-imports-2018.rs
blob: 5a77cd4ef4f5ad359acbc4e7854e13c564761c88 (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
// build-pass (FIXME(62277): could be check-pass?)
// edition:2018
// aux-build:edition-imports-2015.rs

#[macro_use]
extern crate edition_imports_2015;

mod import {
    pub struct Path;
}
mod absolute {
    pub struct Path;
}

mod check {
    #[derive(Derive2015)] // OK
    struct S;

    fn check() {
        Path;
    }
}

fn main() {}