1 // aux-build:remapped_dep.rs
2 // compile-flags: --remap-path-prefix={{src-base}}/errors/auxiliary=remapped-aux
4 // The remapped paths are not normalized by compiletest.
5 // normalize-stderr-test: "\\(errors)" -> "/$1"
7 // revisions: local-self remapped-self
8 // [remapped-self]compile-flags: --remap-path-prefix={{src-base}}=remapped
10 // The paths from `remapped-self` aren't recognized by compiletest, so we
11 // cannot use line-specific patterns for the actual error.
12 // error-pattern: E0423
14 // Verify that the expected source code is shown.
15 // error-pattern: pub struct SomeStruct {} // This line should be show
17 extern crate remapped_dep;
20 // The actual error is irrelevant. The important part it that is should show
21 // a snippet of the dependency's source.
22 let _ = remapped_dep::SomeStruct;