2023-01-06 05:28:05 -06:00
|
|
|
//@ aux-build:remapped_dep.rs
|
|
|
|
//@ compile-flags: --remap-path-prefix={{src-base}}/errors/auxiliary=remapped-aux
|
|
|
|
|
|
|
|
//@ revisions: local-self remapped-self
|
2023-01-06 05:49:07 -06:00
|
|
|
// [local-self] no-remap-src-base: The hack should work regardless of remapping.
|
|
|
|
//@ [remapped-self] remap-src-base
|
2023-01-06 05:28:05 -06:00
|
|
|
|
|
|
|
// Verify that the expected source code is shown.
|
|
|
|
//@ error-pattern: pub struct SomeStruct {} // This line should be show
|
|
|
|
|
|
|
|
extern crate remapped_dep;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
// The actual error is irrelevant. The important part it that is should show
|
|
|
|
// a snippet of the dependency's source.
|
2023-01-06 05:49:07 -06:00
|
|
|
let _ = remapped_dep::SomeStruct; // ~ERROR E0423
|
2023-01-06 05:28:05 -06:00
|
|
|
}
|