mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 08:05:12 +00:00
13 lines
423 B
Rust
13 lines
423 B
Rust
// run-pass
|
|
// check-run-results
|
|
|
|
// revisions: normal with-macro-scope without-macro-scope
|
|
// compile-flags: --remap-path-prefix={{src-base}}=remapped
|
|
// [with-macro-scope]compile-flags: -Zremap-path-scope=macro,diagnostics
|
|
// [without-macro-scope]compile-flags: -Zremap-path-scope=diagnostics
|
|
// no-remap-src-base: Manually remap, so the remapped path remains in .stderr file.
|
|
|
|
fn main() {
|
|
println!("{}", file!());
|
|
}
|