mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
25 lines
341 B
Rust
25 lines
341 B
Rust
// 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() {}
|