mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 18:44:24 +00:00
25 lines
309 B
Rust
25 lines
309 B
Rust
//@ check-pass
|
|
//@ edition:2018
|
|
//@ proc-macro: 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() {}
|